User forums > Using Code::Blocks
C::B keeps recompiling certain files
oBFusCATed:
If you have the old project file you can compare it to the new one to see what is the difference.
marshiell:
The only relevant difference I see is this in the old project file:
--- Quote --- <Compiler>
<Add option="-Wall" />
</Compiler>
<Linker>
<Add library="mingw32" />
<Add library="SDLmain" />
<Add library="C:\Program Files (x86)\CodeBlocks\SDL-1.2.15\lib\libSDL.dll.a" />
<Add library="user32" />
<Add library="gdi32" />
<Add library="winmm" />
<Add library="dxguid" />
<Add library="C:\Program Files (x86)\CodeBlocks\MinGW\lib\libws2_32.a" />
<Add directory="C:/Program Files (x86)/CodeBlocks/SDL-1.2.15/lib" />
</Linker>
--- End quote ---
While there's that in the new project file:
--- Quote --- <Compiler>
<Add option="-Wall" />
<Add directory="C:/Program Files (x86)/CodeBlocks/SDL-1.2.15/include" />
</Compiler>
<Linker>
<Add library="mingw32" />
<Add library="SDLmain" />
<Add library="SDL.dll" />
<Add library="user32" />
<Add library="gdi32" />
<Add library="winmm" />
<Add library="dxguid" />
<Add library="C:\Program Files (x86)\CodeBlocks\MinGW\lib\libws2_32.a" />
<Add directory="C:/Program Files (x86)/CodeBlocks/SDL-1.2.15/lib" />
</Linker>
--- End quote ---
oBFusCATed:
The only difference I can see is that you have sdl.dll in the lib list.
What happens if you add it to the working projected?
marshiell:
It's apparently not the problem. I can't seem to find the source of the issue so I'll just post my project files.
As attachement:
-"psnblal.cbp", the problematic project file.
-"bho.cbp", the new and working project file.
When I copy paste the old .cbp in the new one, the problem comes back. This is really weird!
marshiell:
I just figured it out, this was due to the auto versioning. The version.h file is edited for each build and some of my files were including it.
Navigation
[0] Message Index
[*] Previous page
Go to full version