> It's good that it works for you now. But please note that it is usually
> not possible to mix different C++ compilers to build the lib and your
> app. (project), because of different name mangling in C++. Although
> MinGW/MSYS also uses gcc, I recommend to compile the FLTK libs and
> your app with exactly the same compiler versions and build tools -
> otherwise you might get subtle bugs that are difficult to find (if
> you can link the app at all).
>
> But maybe Code::Blocks uses an installed MinGW gcc/g++ compiler
> anyway ?
--------------
Yeah, when I complied it I used the same complier CodeBlocks uses, it was even 
in the same directory as CodeBlocks. I haven't a clue whether this would break 
anything... :)
Thanks :)

--- Paul R said:
--------------
> If you are using Code::Blocks have you used the project wizard to setup an 
> FLTK project? it will ask you to define location of FLTK, so you put the path 
> in there to the fltk1.10 folder or whatever and then continue in the wizard, 
> the fltk folder needs to be complete with the lib and include directories in 
> their default paths as supplied.
>
> Also you can save as a user template once you have a working FLTK project, 
> then each time you choose new > 'from user template' and selcet the FLTK 
> tmeplate you saved
>
> In any case to link the libraries you need to use the project options and add 
> the paths to the libraries in the linker tab under build options
---------------
I tried using the project wizard (just then) and it threw heaps of errors at 
me, like "Can't find the "include" directory." So I renamed "FL" to "include" 
but then it yapped on about how it couldn't find "Fl.H" (which was in the 
"include" directory). So I gave up ;)

I'm linking to the lib by going to "Project -> Build options -> Linker Settings 
-> Link Libraries -> Add library" then I select "libfltk.a". Then I go to 
"Search directories -> Compiler -> add" then I select the root directory of 
fltk.

As far as I know, I'm doing nothing wrong, yet code that is compiling using the 
fltk-config script and MSYS isn't compiling with Code::Blocks.

Thanks again for your help, guys :)
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to