User forums > Using Code::Blocks
Problems linking libraries
yaustar:
Whoops... didn't realise that there were already libraries for opengl as *.a.. that fixes the promblems nicely...
Now my next problem is using someones elses *.lib for the GCC compiler, would I have to recompiler it to a *.a file or use the *.lib with VC++ compiler?
squizzz:
--- Quote from: yaustar on September 17, 2005, 01:38:18 pm ---Now my next problem is using someones elses *.lib for the GCC compiler, would I have to recompiler it to a *.a file or use the *.lib with VC++ compiler?
--- End quote ---
It depends. Most of 3rd party libraries comes with precompiled binaries for all major compiler suites. The good news is that GCC/MinGW is one of them. Usually you can download them as separate packages (one for VC++, one for GCC, other for Borland etc).
Btw. many libraries are addictionally released as so called devpaks, you can find huge repository of these at: http://devpaks.org (the site seems to be down ATM...) or download 'em via DevPak plugin. These are dedicated to GCC/MinGW compiler.
yaustar:
Thanks for the information. It saves me a lot of running around headless... :)
Joker:
I'm having similar problems, without resolve.
I'm tinkering with OGRE templates, and I am unable to get code::blocks to have it link with the libraries. I've tried .net toolkit 2003 compiler, and the provided mingw. all give similar unresolved errors. Now, in the projects build options, I've set a FULL path to the libraries in question (OgreMain(_d) in this case) with the same result. I've also tried it with the -l gcc option in extra link options in the same dialog, same result.
i can't seem to figure this out. its very strange.. here's some screenshots:
using gcc: (i've tried every possible combo here)
http://img106.imagevenue.com/img.php?loc=loc153&image=82a_linker_gcc.JPG
using vc .net toolkit
http://img15.imagevenue.com/img.php?loc=loc81&image=595_linker_vc.JPG
always getting unresolved ogre symbols.
btw, the code is just unmodified template privided with code::blocks.
tiwag:
--- Quote from: Joker on October 03, 2005, 02:01:23 pm ---... I am unable to get code::blocks to have it link with the libraries
... i can't seem to figure this out. its very strange.. here's some screenshots:
...
--- End quote ---
the screenshots were a good idea : sit back and READ carefully what's written on the screen !
Policy: Use project options only
this means, that all settings from this dialog box are NOT USED to build this target !
set Policy to any of the other possible settings, like "Prepend target options to project options" and try again ;-)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version