Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: denisco on January 10, 2009, 04:00:02 pm

Title: building gtk project in all platform
Post by: denisco on January 10, 2009, 04:00:02 pm
I made a simple gtk project based on the default in CB windows but when I try to build it in the linux version it does not build.

How do I make it build on both platform ?

I made a test generating the default project in linux and I see the build option being very diferent.
And I am wondering if there is a way to combine either by using #ifdef something : option for each platform?

Title: Re: building gtk project in all platform
Post by: Jenna on January 10, 2009, 04:18:16 pm
Scripting can be used to setup the build parameters dynamically:

http://wiki.codeblocks.org/index.php?title=Build_scripts (http://wiki.codeblocks.org/index.php?title=Build_scripts)
http://wiki.codeblocks.org/index.php?title=Scripting_commands (http://wiki.codeblocks.org/index.php?title=Scripting_commands)