I might have mixed libs yes, and its very outdated, can I just overwrite the old MinGW with a new one?
I will tell you, how I manage:
- I have a folder "D:\Devel\CodeBlocks" with the nightly (SVN) version of C::B.
- I have another folder with the compiler/linker executables -> D:\Devel\MinGW
To install the compiler I used (unpacked) the packages provided at
MinGW.org but you can also use the installer that is provided
there.
- I have another folder called "D:\Devel\DevPacks" which has a lot sub-folders (e.g. "GLFW", "GLUT", "wxWidgets" and so on...). Each of these sub-folders has at least an "include" and a "lib" folder itself. I mainly have downloaded DevPak's or compiled myself to achieve this.
Now let's say I want to develop an application that uses GLUI, then I setup a project as following:
- For the compiler: include directories: Add D:\Devel\DevPacks\GLUI\include and D:\Devel\DevPacks\GLUT\include (since GLUI is based on GLUT)
- For the linker: linker directories: D:\Devel\DevPacks\GLUI\lib, D:\Devel\DevPacks\GLUT\lib; libraries to link against (on the left part): "glut32" and "glui" (just "Add" and put e.g. "glui" in the textbox).
Notice that the libraries are actually called "libglui.a" and "libglut32.a" on my HDD. Anyway - C::B will take care of the prefix "lib", the extension ".a" (if required) and the command line switch "-l" for the linker.
And that's also the difference between "left and right" (from the other post of yours): The left part is only to provide the linker with additional libraries to link against. C::B will take care to compute the "right" command line switch. The "right" part is for *any* linker switch C::B just adds but doesn't modify at all, thus not only libs but also additional flags, defines, whatever...
I hope this helps. If not, please post a message with a zipped minimalistic project of your's that doesn't work.
With regards, Morten.
Ps.: I wonder what shall come out of this anyway... freeimage and glut/glfw is not an "easy stuff". Don't you think you should start at another more "hello world" like level and come back to something more difficult later?!