User forums > Using Code::Blocks

Template for FLTK application

<< < (2/3) > >>

thomas:
If you switch to "GUI application", the IDE will use whatever compiler option is correct for the compiler you have chosen, and this will be updated for future releases, too. So this is the correct way to do it. It will work with every compiler that is supported. Always. (Well, unless there's a bug.)

About the "-mwindows is deprecated" story, let's suppose I post "I think the -O2 and -O3 switches are deprecated" on this forum. Will people  stop using it them because of this? :lol:

I mean seriously, there is no statement regarding that deprecation on either the gcc, the MinGW, or the cygwin site (at least neither Google nor a hand search found it). I would say that if anyone is an authority on that matter, it is those three, and certainly they would make such information public? The only quote I could find that really said -mwindows was deprecated was some random person on an Allegro forum, and he was not even certain about it!

MortenMacFly:

--- Quote from: thomas on October 28, 2005, 02:01:22 pm ---About the "-mwindows is deprecated" story, let's suppose I post "I think the -O2 and -O3 switches are deprecated" on this forum. Will people  stop using it them because of this? :lol:

--- End quote ---
Knowing that you are a "Code::Blocks - guru"... yes. :lol: :lol: :lol:

But honestly: Thanks for clarification. A question is left: You said that using "GUI" takes care of the settings: Does that mean that removing the "-mwindows" switch from the (any) template is right?

With regards,

Morten.

thomas:
Yes :)

Angelo:
I don't know it's my fault, but i have thoose errors:

http://img461.imageshack.us/img461/2017/err1nx.jpg

(C::B RC2, WinXPSP2, fltk source folder c:\fltk-1.1.6)

MortenMacFly:

--- Quote from: Angelo on October 29, 2005, 02:53:39 pm ---I don't know it's my fault, but i have thoose errors: [...]

--- End quote ---

To get the FLTK application compiling and running you need to have installed the FLTK libraries and header files. You might want to use the DevPack plugin of Code::Blocks to download and install the FLTK (1.1.6) DevPack - there use the "community server" and look in the GUI category.

Once this is installed you need to setup the custom project variable (FLTK_DIR) to point to that directory. Sub-folders of this directory should be "include" and "lib". Then the compiler/linker directories point to the files required and compiling will work.

Morten.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version