On Tue, 8 May 2007 17:45:34 +0100
"MacArthur, Ian \(SELEX\) \(UK\)" <[EMAIL PROTECTED]> wrote:

> 
> 
> > > I assume you have tried (as the error suggests) running 
> > ranlib on your
> > > library to make sure it's index is up to date?
> > > 
> > > What did that report?
> > 
> >     that indexes are made. though it was implicitly said to 
> > construct them (mind key 's' in ar).
> 
> Does that mean it is working now?

        Quite the opposite :)
        It doesn't matter how library is constructed. Either with indexes or 
not.
Maybe, the combination of cross-tools aren't correct - cegcc, plus fltk (with 
cygwin),
who knows.

        export CC=/usr/ppc/arm-wince-mingw32ce/bin/gcc
        export CXX=/usr/ppc/arm-wince-mingw32ce/bin/g++
        ./configure --enable-cygwin

        # make install

        then compilation test like this

[EMAIL PROTECTED]:~/src/fltk-2.0.x-r5528> /usr/ppc/arm-wince-mingw32ce/bin/gcc 
-I/usr/local/include -I/usr/X11/include -Wno-non-virtual-dtor -o arc 
test/arc.cxx -L/usr/local/lib /usr/local/lib/libfltk2.a -L/usr/X11/lib   
-lsupc++
/usr/local/lib/libfltk2.a(setcolor.o):setcolor.cxx:(.text+0x8e4): undefined 
reference to `ExtCreatePen'
/usr/local/lib/libfltk2.a(path.o):path.cxx:(.text+0x1084): undefined reference 
to `sinf'
/usr/local/lib/libfltk2.a(path.o):path.cxx:(.text+0x1090): undefined reference 
to `cosf'
/usr/local/lib/libfltk2.a(path.o):path.cxx:(.text+0x1854): undefined reference 
to `cosf'


> 
> Also - I have found in the past that the indexes in archives can be
> quite fragile. For example, on OSX, if you copy a lib from where it was
> built to somewhere else, you often need to re-run ranlib to repair the
> index after the move... Perhaps you have a similar problem in your
> cross-compile environment, that the index generated by ar somehow gets
> invalidated by a subsequent copy (or other) operation?

        Apparently, you're right. I see the size of libfltk2.a changed after I 
made indexes with ranlib.
But anyway, compilation behaviour remains the same :(

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

Reply via email to