>
> On 9 Sep 2011, at 20:49, Raydhitya Yoseph wrote:
>
> > I had only been programming using only a language and had never used a =
> library before. So, I am a newbie in this matter.
> >=20
> > I'm developing on windows. Here what I do for hours to no avail =
> getting FLTK to work for me.
>
> To be honest, what you are describing don't really sound like fltk =
> issues - rather, I think you need to get a better grip on your tools, =
> then a lot of this will just make so much more sense to you.
> Whether this is the right place to ask, and whether we are the best =
> people to help you, well, that's a whole different story!
>
I asked here because I don't know where to ask :(
This is my first time using a library which is not included in the language..

> > 1. Installed MinGW (C:\MinGW), msys(C:\MinGW\msys), msysDK
>
> What version of mingw / Msys are you using, what version of gcc does it =
> contain?
>
version 4.4.1

> What version of Windows are you running on?
>
windows 7

> > 2. downloaded FLTK
> > 3. unzipped it into C:\MinGW\msys\1.0\home\"my username"
>
> I'd probably use the Msys shell at this point and use something like...
>
>    tar -jxf fltk-1.3.whatever.bz2
>
Is it the same with what I did?
I'll try it :)

> > 4. open the shell and cd fltk-1.3.0
> > 5. following the readme, so: autoconf -> ./configure -> make -> make =
> install
>
> These days, I'd advise against installing.
> Fltk is designed to be usable from the build tree directly, so =
> installing just clutters up your system for no good reason.
>
Make is building the FLTK to be useable right? So, what make install do?

> > 6. I could run the fluid.exe under the msys, but couldn't on windows =
> and get a .dll file is missing
>
> What DLL is missing? If this is a very recent version of mingw, it may =
> be the gcc C++ support libs, which is an ongoing problem.
> Older versions of gcc/mingw (say gcc-345 or so) do not have this problem =
> so I'd recommend them.
> Current mingw/gcc combinations can be used but need a few extra libs =
> linked in statically at compile time.
> Albrecht has posted on this subject a few times recently so a trawl =
> through the archives will surely find the information you need - or =
> google the interwebs; it's not just fltk that has this problem!
>
> NOTE: as a general rule, try and link fltk static rather than depending =
> on the DLL's - it eases portability greatly.
>
It was missing libgcc_s_dw2_1.dll. This was because I used gcc 4.4.1 right? So, 
how to statically link the extra libs?


>
> > 7. I copied the all files C:\MinGW\msys\1.0\local\ into C:\MinGW\ =
> corresponding folder bin to bin, lib to lib, and include to include
>
> OK - but wrong solution, bad move, sorry...
>
Why is that a bad move? So, should I delete all the files copied and stay using 
files at C:\MinGW\msys\1.0\local\ ?

> > 8. I could run the fluid.exe now.
> > 9. I thought that means I can use FLTK now, but no.
> > 10. using gcc -o on a file gave me undefined reference
>
> Um, you need to *at least* be using g++ rather than gcc for fltk code...
>
Will do that. I just realized that FLTK is object-oriented..

> > 11. I stopped because there because I don't have any knowledge about =
> linking.
>
> Yup - you need to read up a bit on the basics here; I;m sure after that =
> it will all make much more sense.
>
Any good links to start? Like something "for dummy" to linking..

> > 12. Another question: how do I integrate FLTK to Code::Blocks?
>
> Never used it, aut as far as I know, it Just Works - you just tell C::B =
> the appropriate paths to the fltk headers and libs, and ensure the link =
> paths are set right and then you are good to go.
>
Assuming to my result I should tell C::B the path is C:\MinGW\msys\1.0\local\.. 
The problem is I still get undefined reference.. I hope this is resolved when I 
understand the "static linked library" :)

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to