Error with const variables
Adrian Trapletti
a.trapletti at ustermetrics.com
Sun Dec 8 15:38:27 UTC 2024
Hi,
I run jextract on
https://github.com/ERGO-Code/HiGHS/blob/master/src/interfaces/highs_c_api.h
.
If I use the Java bindings to access the const variables I get
"java.lang.UnsatisfiedLinkError: unresolved symbol".
For example
...
long sense = kHighsObjSenseMinimize();
...
results in
java.lang.UnsatisfiedLinkError: unresolved symbol: kHighsObjSenseMinimize
at
com.ustermetrics.highs4j/com.ustermetrics.highs4j.bindings.highs_c_api_h.lambda$findOrThrow$0(highs_c_api_h.java:44)
at java.base/java.util.Optional.orElseThrow(Optional.java:403)
at
com.ustermetrics.highs4j/com.ustermetrics.highs4j.bindings.highs_c_api_h.findOrThrow(highs_c_api_h.java:44)
at
com.ustermetrics.highs4j/com.ustermetrics.highs4j.bindings.highs_c_api_h$kHighsObjSenseMinimize$constants.<clinit>(highs_c_api_h.java:804)
at
com.ustermetrics.highs4j/com.ustermetrics.highs4j.bindings.highs_c_api_h.kHighsObjSenseMinimize(highs_c_api_h.java:834)
at
com.ustermetrics.highs4j/com.ustermetrics.highs4j.bindings.BindingsTest.solveLinearProgramReturnsExpectedSolution(BindingsTest.java:32)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
(https://github.com/atraplet/highs4j and run the unit tests)
What do I miss here?
Thx and best regards,
Adrian
*Dr. Adrian Trapletti*
CEO
*Uster Metrics GmbH *| Steinstrasse 9b, 8610 Uster, Switzerland
P +41 32 512 83 63 | M +41 79 103 71 31
a.trapletti at ustermetrics.com | www.ustermetrics.com
This email message including any attachments is confidential and may be
privileged. It is intended solely for the use of the individual or entity
named on this message. It is provided for informational purposes only and
does not constitute an offer or invitation to subscribe for or purchase any
services or products. Any form of disclosure, copying, modification or
distribution is unauthorized. If you are not the intended recipient, you
are requested to please notify the sender immediately and delete the
message including any attachments from your computer system network. Email
transmission cannot be guaranteed to be secure or error free as information
could be modified. We therefore do not accept responsibility or liability
as to the completeness or accuracy of the information contained in this
message or any attachments.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/jextract-dev/attachments/20241208/2ac12e1d/attachment-0001.htm>
More information about the jextract-dev
mailing list