I'm trying to compile lyx.1.3.4 in cygwin.
I use gcc 3.3.3, xforms 1.0 (which I compiled from sources) and an updated cygwin distribution


First I got an error compiling Dialog.c, but I switched off the optimizations and it worked.

Then, when I link:
g++ -O1 -mms-bitfields -Wl,--export-all-symbols -o lyx.exe
>> SKIP
TextCache.o Thesaurus.o ToolbarDefaults.o boost.o boost-inst.o box.o
>> SKIP
mathed/.libs/libmathed.a insets/.libs/libinsets.a frontends/.libs/libfrontends.a .libs/libimp-cygjpeg-62.a /usr/local/lib/libforms.a -lXpm graphics/.libs/libgraphics.a support/.libs/libsupport.a ../boost/libs/regex/src/.libs/libboostregex.a ../boost/libs/signals/src/.libs/libboostsignals.a .libs/libimp-cygintl-3.a -L/usr/lib .libs/libimp-cygiconv-2.a -lSM -lICE -L/usr/X11R6/lib -lX11



I got the following error:

----------------------

TextCache.o(.ctors+0x0):TextCache.C: undefined reference to `__GLOBAL__I__ZN9TextCache7findFitEP6Bufferi'
TextCache.o(.dtors+0x0):TextCache.C: undefined reference to
`__GLOBAL__D__ZN9TextCache7findFitEP6Bufferi'


>>> skip many other undefined reference

collect2: ld returned 1 exit status
make[2]: *** [lyx.exe] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
------------------------

Now, TextCache.o is in the link list, with objdump I see the findFitBuffer symbol in TextCache.o and I do not understand the problem.

Is that a problem of gcc, as I think now?

Is there anyone which could compile lyx (last version) under cygwin ?
I searched th mailing lists but this is not clear (at least to me).

I used the last lyx under cygwin -1.3.1 and now I use lyx 1.3.3 for qt-win, but I'd like to see lyx compiling under cygwin.

Thanks.


Angelo Gargantini




Reply via email to