Note that there are some explanatory texts on larger screens.

plurals
  1. POEclipse CDT: how to import external libraries?
    primarykey
    data
    text
    <p>I am new at C++ and at eclipse. I am trying to use open dynamic engine. I am using ubuntu 12.04.2 LTS.</p> <p>I downloaded ODE from sourceforge and compiled it using the instruction using make. At the end of the process, files libode.a and libode.la are present in usr/local/lib.</p> <p>Demos delivered with the program run well.</p> <p>I am now trying to use ODE with eclipse CDT (Juno Service Release 2).</p> <p>I created a project and wrote this ultra-minimum program:</p> <pre><code>#include &lt;ode/ode.h&gt; int main() { return 0; } </code></pre> <p>First I did not change the properties of the project at all. But by default /usr/local/include is in the Includes and eclipse does not complain about not finding ode.h.</p> <p>When I run the program I get 1057 errors of the like:</p> <pre><code>a was not declared in this scope | line 134,external location: /usr/local/include/ode/matrix.h </code></pre> <p>Looks like it is trying to recompile ODE ?</p> <p>I wondered if it was because it could not find the libraries, and I edited the properties of the project. At the properties / c/c++ Build / settings / cross G++ Linker / Libraries I add "ode" at libraries and "/usr/local/lib" in Library search path.</p> <p>This did not change anything.</p> <p>Anything I do not get ?</p> <p>---- Edit</p> <p>Apparently eclipse is running:</p> <pre><code>g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/TestODE.d" -MT"src/TestODE.d" -o "src/TestODE.o" "../src/TestODE.cpp" </code></pre> <p>I ran this in terminal and get the same errors </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload