Code::Blocks - linker settings

I am frankly stumbled - I can't seem to find a way to edit preset linker options from the IDE.

When I build a project created from the Win32 GUI template for instance, it automatically links kernel32.lib, gdi32.lib and user32.lib - those don't appear in the linker settings though, only in the project file I have
1
2
3
4
5
<Linker>
			<Add library="gdi32" />
			<Add library="user32" />
			<Add library="kernel32" />
</Linker>


I want to remove these, because I need neither of the three. Of course I can just remove those 3 lines, but it feels kinda wrong to manually edit the project XML - I feel that is something you should be able to do from the IDE, but I can't seem to find out how. My linker settings are completely blank.

Oh, and unrelated side question: How can I get Code::Blocks to recompile a project if no code was changed, but linker/compiler settings? It would always tell me that the target is up to date, so I'd always have to edit some line of code to get it to recompile anything... that feels kind of wrong too though.
I want to remove these, because I need neither of the three.
But you need all of them. Without them you can't do anything with the windows system

How can I get Code::Blocks to recompile a project if no code was changed
There's a rebuild button
I meant, I don't need to explicitly link these - I compile with -mwindows , which does this anyways (and right now, of those I only need gdi32). And I didn't see that lol...

Anyways, my issue is that Code::Blocks links libraries, and I can't seem to edit those settings from anywhere in the IDE. I wasn't asking if it was a good idea to change those, I was asking how to do it.
Last edited on
Topic archived. No new replies allowed.