I don't think because it says gcc instead of g++ it is causing the
problem. To prove the point I pasted the test program into a file and
did the following:
g++ -o conftest -g -O2 famtest.c -lfam
and i got:
/tmp/ccVa4c0d.o: In function `main':
/tmp/famtest.c:8: undefined reference to `FAMOpen() '
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.3/../../../libfam.so:
undefined reference to `__rtti_user'
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.3/../../../libfam.so:
undefined reference to `__rethrow'
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.3/../../../libfam.so:
undefined reference to `__builtin_vec_new'
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.3/../../../libfam.so:
undefined reference to `__builtin_vec_delete'
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.3/../../../libfam.so:
undefined reference to `__builtin_delete'
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.3/../../../libfam.so:
undefined reference to `__builtin_new'
collect2: ld returned 1 exit status
If you notice i still get the same problem. Any other ideas?
Thanks
Amith
On Wed, 2002-01-16 at 15:47, Rémi Cohen-Scali wrote:
> Fam is a c++ module and need g++ to link
>
> le mer 16-01-2002 à 21:44, Amith Varghese a écrit :
> > Hi... I'm trying to compile nautilus with fam support but i am running
> > into some problems. I can run and install fam alright, but when I run
> > the nautilus configure script it says it can't find the FAM library so
> > it won't compile support in for it. However when I look at the
> > config.log I see the following
> >
> >
> > configure:6661: checking for FAMOpen in -lfam
> > configure:6680: gcc -o conftest -g -O2 conftest.c -lfam 1>&5
> > /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.3/../../../libfam.so:
> > undefined reference to `__rtti_user'
> > /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.3/../../../libfam.so:
> > undefined reference to `__rethrow'
> > /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.3/../../../libfam.so:
> > undefined reference to `__builtin_vec_new'
> > /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.3/../../../libfam.so:
> > undefined reference to `__builtin_vec_delete'
> > /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.3/../../../libfam.so:
> > undefined reference to `__builtin_delete'
> > /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.3/../../../libfam.so:
> > undefined reference to `__builtin_new'
> > collect2: ld returned 1 exit status
> > configure: failed program was:
> > #line 6669 "configure"
> > #include "confdefs.h"
> > /* Override any gcc2 internal prototype to avoid an error. */
> > /* We use char because int might match the return type of a gcc2
> > builtin and then its argument prototype would still apply. */
> > char FAMOpen();
> >
> > int main() {
> > FAMOpen()
> > ; return 0; }
> >
> > It looks like there are some problems when compiling the test program so
> > that's why it failed. I don't understand why there are undefined
> > symbols when I compiled FAM itself. I'm running redhat with a 2.4.13
> > kernel and glibc 2.2.4. If anyone has any suggestions I would
> > appreciate it.
> >
> > Thanks
> > Amith
> >
> >
> >
> >
> >
> >
> > _________________________________________________________
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> >
> > --
> > Source code, list archive, and docs: http://oss.sgi.com/projects/fam/
> > To unsubscribe: echo unsubscribe fam | mail majordomo@xxxxxxxxxxx
> --
> -o)
> Remi Cohen-Scali /\\
> <Remi@xxxxxxxxxxxxxxx> <rcoscali@xxxxxxxxxx> _\_v
> ----
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--
Source code, list archive, and docs: http://oss.sgi.com/projects/fam/
To unsubscribe: echo unsubscribe fam | mail majordomo@xxxxxxxxxxx
|