Hey there,
i found a nice post from MortenMacFly where he explains in wich way he manages his libs.
I did this:
- created a new dir called DevPacks C:\Program Files\CodeBlocks
- added zlib and libpng folders. Now i have this structure:
C:\Program Files\CodeBlocks\DevPacks\libpng\include
C:\Program Files\CodeBlocks\DevPacks\libpng\lib
C:\Program Files\CodeBlocks\DevPacks\zlib\include
C:\Program Files\CodeBlocks\DevPacks\zlib\lib
- created a new empty project
- from Project->build options->search directories i added the 2 paths C:\Program Files\CodeBlocks\DevPacks\libpng\include and C:\Program Files\CodeBlocks\DevPacks\zlib\include in the compiler tab and the 2 paths C:\Program Files\CodeBlocks\DevPacks\libpng\lib and C:\Program Files\CodeBlocks\DevPacks\zlib\lib in the linker tab.
- later from linker settings tab i added the 2 libs, just adding the names without path since i specified 'em before. I added libpng and libz. (Staying at what Morten says CB should khnow what file (.a or .dll.a) to pick up and i don't need to take care of this)
Now i can compile without error, but when i run it the application doesn't run since CB can't find libpng3.dll (note the 3)! Where the hell can i take this dll and where shoul i put it? I saw many ppl putting DLLs in windows/system, tough other ppl says this is not a good practice.
EDIT: i added the zlib.dll in windows/system. I don't khnow but where i can find that libpng3.dll. Such file doesnt exist. I have just the libpng.dll
Thanks guys, i feel i am near the solution

Bro