On Thursday 03 October 2002 7:07 pm, Keeron Ögren wrote:
> Now i located the objevtcode - of crc-table_t its in
> src/frontends/.libs/libfrontends.a
>
> g++3.1 is to bee dificult on linking, so Im told.
>
> That is the same flags I squashed solving the first problem
> - bringing me back to square one - probably were you right
> on just switching the flags - or in som manner change the
> linking of the file libfrontends.a. My solution - changing
> the final set of flags was probably wrong.
>
> So how can i get hold of just the libsuport.a configuration?
>
> Redoing my earlier test I found out that when I tried
> to change the Makefile (XFORMS_IMAGE_LIB and XFORM_LIB)
> that didnt change anything. So i proably have to change
> the Makefile.in - hacking makefiles are not my strong side.
>
> Were do i find the flags for linking
> support/.libs/libsupport.a ? In a Makefile or Makefile.in
> - autogen totaly messupp on this system.
>
> Keeron
>
> >-----snipp--------<
>
> vc-backend.o version.o vspace.o  -L/usr/local/lib
>  mathed/.libs/libmathed.a insets/.libs/libinsets.a
>  frontends/.libs/libfrontends.a -ljpeg -lforms
>  graphics/.libs/libgraphics.a support/.libs/libsupport.a
>  ../sigc++/.libs/libsigc.a ../intl/libintl.a -lXpm -lSM
> -lICE
>  -lc -lm -L/usr/X11R6/lib -lX11
>  ld: Undefined symbols:
>  _jpeg_CreateCompress
>  _jpeg_CreateDecompress
>
> >-----snipp--------<

So you've resolved your problem with crc-table_t but the libjpeg 
one has returned?

Somewhere in src/Makefile you should find:

lyx$(EXEEXT): $(lyx_OBJECTS) $(lyx_DEPENDENCIES) 
        @rm -f lyx$(EXEEXT)
        $(CXXLINK) $(lyx_LDFLAGS) $(lyx_OBJECTS) $(lyx_LDADD) $(LIBS)

This should help you track down where to look: 
        grep -n 'lyx$(EXEEXT)' Makefile

Here it gives
459:bin_PROGRAMS = lyx$(EXEEXT)
653:lyx$(EXEEXT): $(lyx_OBJECTS) $(lyx_DEPENDENCIES)
654:    @rm -f lyx$(EXEEXT)

Here, LIBS is defined as:
LIBS = -lXpm  -lSM -lICE -lc -lm   -L/usr/lib -lX11  -ldnet_stub

So, why not cheat and add -ljpeg?

Angus

Reply via email to