S. Oh wrote:
> I installed fltk2.0 on fedora. When I try to compile the hello program with 
> the following command
> 
> g++ hello.c -I/usr/local/include -L/usr/local/lib -lfltk2 -lXext -lXinerama 
> -lXft -lX11 -lXi -lm
> 
> some strange messages come out:
> 
> /usr/bin/ld: skipping incompatible /usr/local/lib/libstdc++.so when searching 
> for -lstdc++
> /usr/bin/ld: skipping incompatible /usr/local/lib/libstdc++.a when searching 
> for -lstdc++
> /usr/bin/ld: skipping incompatible /usr/local/lib/libgcc_s.so when searching 
> for -lgcc_s
> /usr/bin/ld: skipping incompatible /usr/local/lib/libgcc_s.so when searching 
> for -lgcc_s
> 
> What is wrong?

        The question is, what are those libraries doing in /usr/local/lib?

        Those are standard C/C++ compiler libraries, and are ordinarily
        found only in /usr/lib, and come as part of the OS compiler install.

        The fact it's saying 'incompatible' might also mean those libs
        are for a different architecture or compiler release. You can
        probably use file(1) to determine this.

        The errors seem to be warnings which can probably be ignored.
        But you should probably find out who put those files there and why,
        and possibly move them away to a safer place where they won't interfere
        with normal builds.

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

Reply via email to