Don't you want to link the libraries?
In that case, the options should be like:
-lglut
i.e. -l means link library
and glut means select library libglut.a
/Per W
On Thu, 24 Feb 2005, Gabor Kalman wrote:
> As so many other, I have problem with glui!!!
> =A0
> As recommended I downloaded/installed:=A0=A0 glut.3.7.6+=A0 and=A0 glui.2=
=2E2-1
> =A0
> Added to Project-Options-Paramaters: -glui, -glut, -glue and -opengl32
> =A0
> linked the directories:
> =A0\include\gl\
> \lib\
> =A0
> =A0
> Yet I get the following comiler messages:
> =A0
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
> Compiler: Default compiler
> Building Makefile: "C:\ccc\Makefile.win"
> Executing=A0 make...
> make.exe -f "C:\ccc\Makefile.win" all
> g++.exe example1.o=A0 -o "Project_glui.exe" -L"C:/Dev-Cpp/lib" -L"C:/Dev-=
Cpp_2/lib" -glui -glut -glue -opengl32=A0
> example1.o(.text+0x7):example1.cpp: undefined reference to `glutGetWindow=
@0'
> example1.o(.text+0x1c):example1.cpp: undefined reference to `glutSetWindo=
w@4'
> ----
> ...
> ---
> example1.o(.text+0x3d1):example1.cpp: undefined reference to `GLUI_Master=
'
> example1.o(.text+0x3d6):example1.cpp: undefined reference to `GLUI_Master=
_Object::create_glui(char*, long, int, int)'
> ---
> ...
> ----
> example1.o(.text+0x471):example1.cpp: undefined reference to `GLUI::set_m=
ain_gfx_window(int)'
> example1.o(.text+0x480):example1.cpp: undefined reference to `GLUI_Master=
'
> example1.o(.text+0x485):example1.cpp: undefined reference to `GLUI_Master=
_Object::set_glutIdleFunc(void (*)())'
> example1.o(.text+0x48a):example1.cpp: undefined reference to `glutMainLoo=
p@0'
> collect2: ld returned 1 exit status
> make.exe: *** [Project_glui.exe] Error 1
> Execution terminated
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> =A0
> Could someone please help with an appropriate tutorial/desription/instruc=
tions
> =A0
> Thanks
> ------------------------------------------------------- SF email is spons=
ored by - The IT Product Guide Read honest & candid reviews on hundreds
> of IT Products from real users. Discover which products truly live up to =
the hype. Start reading now.
> http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick ___________=
____________________________________ Dev-cpp-users mailing list
> Dev...@li... TO UNSUBSCRIBE: http://www23.brinkste=
r.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|