Hi Justin, hi Martin,
Here are some more info:
I have installed Mac OS X 10.2 + the developer CD + the august update
from Apple:
% what /usr/bin/libtool
/usr/bin/libtool
PROGRAM:cctools_misc PROJECT:cctools-435 DEVELOPER:root
BUILT:Mon Jul 15 20:25:50 PDT 2002
I don't have Fink installed, I'm waiting for the next version.
I add:
% set CPPFLAGS=-fexceptions
% echo $CPPFLAGS
-fexceptions
%
I configure GMP 4.1 with the --enable-cxx option. No problem, I think.
Then I do a make:
... everything seems to compile fine until :
scanf/fscanffuns.o scanf/scanf.o scanf/sscanf.o scanf/sscanffuns.o
scanf/vfscanf.o scanf/vscanf.o scanf/vsscanf.o
ranlib .libs/libgmp.a
creating libgmp.la
(cd .libs && rm -f libgmp.la && ln -s ../libgmp.la libgmp.la)
/bin/sh ./libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.
-D__GMP_WITHIN_GMP -g -O2 -mpowerpc -no- cpp-precomp -mcpu=750 -c -o
dummy.lo `test -f dummy.cc || echo './'`dummy.cc
g++ -DHAVE_CONFIG_H -I. -I. -I. -D__GMP_WITHIN_GMP -g -O2 -mpowerpc
-no-cpp-precomp -mcpu=750 -c dummy.cc -fno-common -DPIC -o
.libs/dummy.o
g++ -DHAVE_CONFIG_H -I. -I. -I. -D__GMP_WITHIN_GMP -g -O2 -mpowerpc
-no-cpp-precomp -mcpu=750 -c dummy.cc -o dummy.o >/dev/null 2>&1
/bin/sh ./libtool --mode=link g++ -g -O2 -mpowerpc -no-cpp-precomp
-mcpu=750 -o libgmpxx.la -rpath /usr/local/lib - version-info 3:2:0
dummy.lo cxx/isfuns.lo cxx/ismpf.lo cxx/ismpq.lo cxx/ismpz.lo
cxx/osdoprnti.lo cxx/osfuns.lo cxx/ osmpf.lo cxx/osmpq.lo cxx/osmpz.lo
libgmp.la
*** Warning: linker path does not have real file for library -lstdc++.
*** I have the capability to make that library automatically link in
when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libstdc++ and none of the candidates passed a file format test
*** using a file magic. Last file checked:
/usr/lib/gcc/darwin/default/libstdc++.a
*** Warning: linker path does not have real file for library -lgcc.
*** I have the capability to make that library automatically link in
when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libgcc and none of the candidates passed a file format test
*** using a file magic. Last file checked:
/usr/lib/gcc/darwin/default/libgcc.a
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.
g++ -shared .libs/dummy.o cxx/.libs/isfuns.o cxx/.libs/ismpf.o
cxx/.libs/ismpq.o cxx/.libs/ismpz.o cxx/.libs/osdoprnti.o
cxx/ .libs/osfuns.o cxx/.libs/osmpf.o cxx/.libs/osmpq.o
cxx/.libs/osmpz.o ./.libs/libgmp.dylib -L/usr/lib/gcc/darwin/3.1
-L/usr/lib/ gcc/darwin -L/usr/libexec/gcc/darwin/ppc/3.1/../../..
-lSystem -lc -o .libs/libgmpxx.3.0.2.dylib
g++: unrecognized option `-shared'
ld: Undefined symbols:
_main
make[2]: *** [libgmpxx.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Any suggestion?
Fred
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users
- [Fink-users] GMP C++ shared lib Fred Mesnard
- Re: [Fink-users] GMP C++ shared lib Justin C. Walker
- Re: [Fink-users] GMP C++ shared lib Martin Costabel
- Re: [Fink-users] GMP C++ shared lib Fred Mesnard
- Re: [Fink-users] GMP C++ shared lib Ben Hines
- Re: [Fink-users] GMP C++ shared li... Fred Mesnard
- Re: [Fink-users] GMP C++ shared li... Torbjorn Granlund
- Re: [Fink-users] GMP C++ share... Fred Mesnard
- Re: [Fink-users] GMP C++ shared li... Brian Lenihan
- Re: [Fink-users] GMP C++ share... Ben Hines
- Re: [Fink-users] GMP C++ s... Torbjorn Granlund
- Re: [Fink-users] GMP C++ s... Brian Lenihan
- [Fink-users] Gimp-1.2.3-9 scmarcos
- Re: [Fink-users] GMP C++ shared li... Viktor Haag
