Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Problem in Compiling (G++ parameters)
Problem in Compiling (G++ parameters) [message #1028677] Thu, 28 March 2013 15:41
Gaetano D\\\'Onghia is currently offline Gaetano D\\\'OnghiaFriend
Messages: 3
Registered: March 2013
Junior Member
Problem in Compiling (G++ parameters)

i have installed on my Linux Ubuntu
Eclipse for PHP Developers
Version: Helios Service Release 2
Build id: 20110218-0911,
with CDT Plugin and other packages such as OpenNI, OpenCV and others
I tried to run an OpenNi example
It's ok when i pass g++ parameter from shell
(here the code :
g++ -o NiUserTracker SceneDrawer.cpp main.cpp -I/usr/include/ni/ -l'OpenNI' -l'glut'
)

When i try to compile through Eclipse IDE, 135 errors
It would be dependences or include or Libs dirs but i added them through
Properties > C/C++ General > Paths and Symbols > Includes and Library Paths
here the code generated from Eclipse

make all
Building file: ../SceneDrawer.cpp
Invoking: GCC C++ Compiler
g++ -I/usr/include/ni -I/usr/include/GL -I"/home/xxx/eclipse/workspace/NiUserTracker_prova1/GL" -I"/home/xxx/eclipse/workspace/NiUserTracker_prova1/GLES" -I"/home/xxx/eclipse/workspace/NiUserTracker_prova1/glh" -I/usr/X11R6/include/ -O0 -g3 -Wall -c -fmessage-length=0 -v -MMD -MP -MF"SceneDrawer.d" -MT"SceneDrawer.d" -o"SceneDrawer.o" "../SceneDrawer.cpp"

I don't see main.cpp and I don't know where i can add -l'OpenNI' -l'glut' parameter
Previous Topic:'Show Includers' in CDT include browser greyed out
Next Topic:Breakpoints in shared libraries loaded at runtime
Goto Forum:
  


Current Time: Fri Apr 26 20:22:52 GMT 2024

Powered by FUDForum. Page generated in 0.02945 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top