-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem to Link with CppAD and Ipopt #176
Comments
Take a look at the discussion In particular the suggestion |
But how exactly to include that particular library? Please see below my CMakeLists.txt. There is an entry called cppad_lib, but the problem remains.
|
And this is how compiler error log sounds:
|
The only workaround I have found so far is to include the following header (copied from inside CppAD):
|
Please take a look at the following Many other people are having this problem and I think I should put something in the documentation for this: Do you have a suggesiton ? Where did you look in the documentation ? Did you do a search for |
Did the message above solve the problem for you ? If so, would you please close this issue. |
No, the message above did not help. Sounds like the library does not have temp_file method inside for some reason. The problem was solved the other way: by directly compiling with adding the temp_file method to the header included in the entry point main.cpp. |
temp_file should be in cppad_lib. What system / compiler are you using and what does your link command look like ? |
Is this still a problem for you ? |
After compiling and installing CppAD, there was a problem to link CppAD and Ipopt with C++ linker. Looks like the method std::string temp_file(void); in namespace CppAD::local is referenced withing CppAD include and is not present in the linking library. So far I have just grepped and copied this method to a separate header (and therefore linked), but I guess this is considered an issue.
The text was updated successfully, but these errors were encountered: