GithubHelp home page GithubHelp logo

Comments (11)

bradbell avatar bradbell commented on August 25, 2024

from cppad.

bradbell avatar bradbell commented on August 25, 2024

Please close this issue if the answer above solved this problem.

from cppad.

lxjlu avatar lxjlu commented on August 25, 2024

I also have the same question. How do you solve it in the end? Thanks!

from cppad.

Jackhe96 avatar Jackhe96 commented on August 25, 2024

@lxjlu It was my fault, I was using ROS and the cmakelists.txt file was not configured correctly

from cppad.

lxjlu avatar lxjlu commented on August 25, 2024

@lxjlu It was my fault, I was using ROS and the cmakelists.txt file was not configured correctly

I also used it for the first time, and I understand whether it is a problem in the link section. I am directly g++ -o example example.cpp. Is there any problem, thank you.

from cppad.

bradbell avatar bradbell commented on August 25, 2024

I assume you are using Ipopt and have installed it.

If on your cmake command line you choose cmake_verbose_makefile eqaul to YES
https://coin-or.github.io/CppAD/doc/cmake.htm#cmake_verbose_makefile

and you also specify ipopt_prefix
https://coin-or.github.io/CppAD/doc/cmake.htm#package_prefix

then during the make check
https://coin-or.github.io/CppAD/doc/cmake.htm#make%20check

you should see how CppAD links in ipopt.

from cppad.

lxjlu avatar lxjlu commented on August 25, 2024

I assume you are using Ipopt and have installed it.

If on your cmake command line you choose cmake_verbose_makefile eqaul to YES
https://coin-or.github.io/CppAD/doc/cmake.htm#cmake_verbose_makefile

and you also specify ipopt_prefix
https://coin-or.github.io/CppAD/doc/cmake.htm#package_prefix

then during the make check
https://coin-or.github.io/CppAD/doc/cmake.htm#make%20check

you should see how CppAD links in ipopt.

Thanks, I will check it carefully.

from cppad.

bradbell avatar bradbell commented on August 25, 2024

It will be easier to see if you only check to ipopt_solve examples; i.e., use
make check_example_ipopt_solve

from cppad.

tu-trinh avatar tu-trinh commented on August 25, 2024

@Jackhe96 Hi, I'm running into the exact same error. How did you fix your cmakelists.txt?
I just freshly installed ipopt and #included cppad/ipopt/solve.hpp as well as Interfaces/IpIpoptApplication.hpp and using Ipopt::IpoptApplication, which I believe is where IpoptApplication comes from.

from cppad.

bradbell avatar bradbell commented on August 25, 2024

@tu-trinh By the exact same error do you mean ?

undefined reference to Ipopt::IpoptApplication::IpoptApplication(bool, bool)'
collect2: error: ld returned 1 exit status

from cppad.

DanielrdMorais avatar DanielrdMorais commented on August 25, 2024

I have the same problem:
undefined reference to `Ipopt::IpoptApplication::IpoptApplication(bool, bool)'
collect2: error: ld returned 1 exit status

from cppad.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.