compiling on Linux with gcc
Posted: Sun Feb 07, 2010 12:53 pm
Hello,
I installed the SimTK Core libraries on linux and AuxInstallCheck and CoreInstallCheck are working fine. However, I have problems compiling the example files using gcc compiler. My latest attempt was 'gcc -I/usr/local/SimTK/include -L/usr/local/SimTK/lib Pendulum.cpp -o Pendulum'. The compiler seems to find the .h files in the include/ folder but I get lots of error messages with undefined references to SimTK classes.
Has anyone used gcc with SimTK core libraries? Could you tell me how to properly add the include folder and lib folder to the compiler's path?
My apologies for asking a slightly 'off-topic' question but I hope someone can spare me more waisted hours. Many thanks! Any help is really appreciated.
Katja
I installed the SimTK Core libraries on linux and AuxInstallCheck and CoreInstallCheck are working fine. However, I have problems compiling the example files using gcc compiler. My latest attempt was 'gcc -I/usr/local/SimTK/include -L/usr/local/SimTK/lib Pendulum.cpp -o Pendulum'. The compiler seems to find the .h files in the include/ folder but I get lots of error messages with undefined references to SimTK classes.
Has anyone used gcc with SimTK core libraries? Could you tell me how to properly add the include folder and lib folder to the compiler's path?
My apologies for asking a slightly 'off-topic' question but I hope someone can spare me more waisted hours. Many thanks! Any help is really appreciated.
Katja