<div dir="ltr"><div>Hi,</div><div><br></div><div>I run jextract on <a href="https://github.com/ERGO-Code/HiGHS/blob/master/src/interfaces/highs_c_api.h">https://github.com/ERGO-Code/HiGHS/blob/master/src/interfaces/highs_c_api.h</a>. </div><div><br></div><div>If I use the Java bindings to access the const variables I get "java.lang.UnsatisfiedLinkError: unresolved symbol". </div><div><br></div><div>For example</div><div>...</div><div>long sense = kHighsObjSenseMinimize();</div><div>...</div><div><br></div><div>results in</div><div><br></div><div>java.lang.UnsatisfiedLinkError: unresolved symbol: kHighsObjSenseMinimize<br>  at com.ustermetrics.highs4j/com.ustermetrics.highs4j.bindings.highs_c_api_h.lambda$findOrThrow$0(highs_c_api_h.java:44)<br>       at java.base/java.util.Optional.orElseThrow(Optional.java:403)<br>        at com.ustermetrics.highs4j/com.ustermetrics.highs4j.bindings.highs_c_api_h.findOrThrow(highs_c_api_h.java:44)<br>        at com.ustermetrics.highs4j/com.ustermetrics.highs4j.bindings.highs_c_api_h$kHighsObjSenseMinimize$constants.<clinit>(highs_c_api_h.java:804)<br>   at com.ustermetrics.highs4j/com.ustermetrics.highs4j.bindings.highs_c_api_h.kHighsObjSenseMinimize(highs_c_api_h.java:834)<br>    at com.ustermetrics.highs4j/com.ustermetrics.highs4j.bindings.BindingsTest.solveLinearProgramReturnsExpectedSolution(BindingsTest.java:32)<br>    at java.base/java.lang.reflect.Method.invoke(Method.java:580)<br> at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)<br> at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)</div><div><br></div><div>(<a href="https://github.com/atraplet/highs4j">https://github.com/atraplet/highs4j</a> and run the unit tests)</div><div><br></div><div>What do I miss here? </div><div><br></div><div>Thx and best regards,</div><div>Adrian</div><div><br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><font face="arial, helvetica, sans-serif" size="2" color="#000000"><b>Dr. Adrian Trapletti</b></font></div><div><font face="arial, helvetica, sans-serif" size="2" color="#000000">CEO</font></div><div><font face="arial, helvetica, sans-serif" size="2" color="#000000"><br></font></div><div><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif"><b>Uster Metrics GmbH  </b></span><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif">|  Steinstrasse 9b, </span><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif">8610 Uster, </span><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif">Switzerland</span><br></div><div><font face="arial, helvetica, sans-serif" size="2" color="#000000">P +41 32 512 83 63  |  </font><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:small">M +41 79 103 71 31</span></div><div><a href="mailto:a.trapletti@ustermetrics.com" style="font-family:arial,helvetica,sans-serif;font-size:small" target="_blank">a.trapletti@ustermetrics.com</a>  |  <a href="http://www.ustermetrics.com" style="font-family:arial,helvetica,sans-serif;font-size:small" target="_blank">www.ustermetrics.com</a></div><div><font face="arial, helvetica, sans-serif" size="2" color="#000000"><br></font></div><div><font face="arial, helvetica, sans-serif" size="2" color="#000000"><br></font></div><div><font color="#999999"><font face="arial, helvetica, sans-serif" size="1">This email message including any attachments is confidential and may </font><span style="font-family:arial,helvetica,sans-serif;font-size:x-small">be privileged. It is intended solely for the use of the individual or </span><span style="font-family:arial,helvetica,sans-serif;font-size:x-small">entity named on this message. It is provided for informational purposes </span><span style="font-family:arial,helvetica,sans-serif;font-size:x-small">only and does not constitute an offer or invitation to subscribe for </span><span style="font-family:arial,helvetica,sans-serif;font-size:x-small">or purchase any services or products. Any form of disclosure, copying, </span><font face="arial, helvetica, sans-serif" size="1">modification or distribution is unauthorized. If you are not the </font><span style="font-family:arial,helvetica,sans-serif;font-size:x-small">intended recipient, you are requested to please notify the sender </span><span style="font-family:arial,helvetica,sans-serif;font-size:x-small">immediately and delete the message including any attachments from </span><span style="font-family:arial,helvetica,sans-serif;font-size:x-small">your computer system network. </span></font><font face="arial, helvetica, sans-serif" size="1" style="color:rgb(153,153,153)">Email transmission cannot be guaranteed to be secure or error free as </font><span style="color:rgb(153,153,153);font-family:arial,helvetica,sans-serif;font-size:x-small">information could be modified. We therefore do not accept responsibility </span><span style="color:rgb(153,153,153);font-family:arial,helvetica,sans-serif;font-size:x-small">or liability as to the completeness or accuracy of the information </span><span style="color:rgb(153,153,153);font-size:x-small;font-family:arial,helvetica,sans-serif">contained in this message or any attachments.</span></div><div><font face="arial, helvetica, sans-serif"><br><br><br></font></div></div></div></div></div></div></div></div></div></div></div></div>