User forums > Using Code::Blocks
Stupid Question
Biplab:
Now you forgot to include the glut library. Add libglut.a (or libglut32.a). I don't know their difference. :)
FlyingIsFun1217:
Seems I don't have libglut.a (or libglut32.a), all I seem to have is glut32.lib
Where should I tell C::B about this? In Project->Build Options (Linker Tab?)
Thanks again!
FlyingIsFun1217
----------Edit----------
Here are the files that came with my download of glut:
-README-win32.txt
-glut.h
-glut32.lib
-glut32.dll
-glut.def
Biplab:
Type the following command to create the file libglut32.a
--- Code: ---dlltool -d glut.def -l libglut32.a
--- End code ---
Now use this file to link. Your app will depend upon glut32.dll :)
FlyingIsFun1217:
Thank you, that seems to work very well. :)
For future reference, what does that actually do? Make a library to link to instead of a dll?
Thanks again!
FlyingIsFun1217
Biplab:
--- Quote from: FlyingIsFun1217 on March 17, 2007, 05:23:02 pm ---For future reference, what does that actually do? Make a library to link to instead of a dll?
--- End quote ---
That actually creates an import library file which a linker uses during linking process and this is true for all compilers. You can link against dll directly with GCC (I heard), but I don't know how to do that. You may search this forum for some more details. :)
Regards,
Biplab
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version