>
> > Thanks very much! I've compiled it (finally) :). But when I=20
> > try to link to the lib (it's name is libfltk.a) and compile=20
> > the first program in the documentation (for 1.3) I get heaps=20
> > of error messages, along the lines of "Undefined reference to=20
> > <whatever>".
>
> Sounds like you have not referenced the lib on your link line, or have
> linked the objects in the wrong order.
> The gcc linker (like many linkers) is order sensitive - you need to
> reference the thing that uses a lib before you reference the lib, so the
> linker knows which bits it needs to keep.
> Anything it finds in a lib that has not already been asked for by some
> other linked object will be discarded to save space, so if you list your
> libs before your code, nothing gets linked.
>
>
>
> > I'm using windows xp and trying to compile with=20
> > gcc (my ide is code::blocks). When I compilied the library, I=20
> > actually used MSYS, but am about to try with Visual Studio in=20
> > case there is something wrong with using MSYS....
>
> There's nothing wrong with Msys. I use it all the time. Perhaps this
> how-to would help?
>
> http://www.fltk.org/articles.php?L598
>
> http://www.fltk.org/articles.php?L599=20
----------------------------------------------------------------
Thanks so much for the help! I just tried what the second link you gave me 
said, and my program compiled! I would be all cheery, and this is great, I can 
finally start coding, BUT I still can't get Code::Blocks to build my projects 
(which would save me a LOT of time, instead of using MSYS).

Where is my link line, and how can I put my lib before my project? Sorry I'm 
new to this and am asking all these questions! (surely you have better things 
to do hehe). I really appreciate the help everyone here has given me :). It's a 
really nice community (that I'm going to become a part of, when I get this darn 
thing working... :)).

:)

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

Reply via email to