Lon
_________________________________________________
/bin/sh ./libtool --mode=link g++ -g -O2 -o tagdemo main.o libbaz.la
g++ -g -O2 -o .libs/tagdemo main.o ./.libs/libbaz.so -lm -Wl,--rpath -Wl,/usr/local/lib
main.o(.text+0xe): In function `main':
/usr/include/g++-3/iostream.h:106: undefined reference to `cout'
main.o(.text+0x13):/usr/include/g++-3/iostream.h:106: undefined reference to `ostream::operator<<(char const *)'
main.o(.text+0x1e):/usr/include/g++-3/iostream.h:106: undefined reference to `endl(ostream &)'
main.o(.text+0x40):/usr/include/g++-3/iostream.h:106: undefined reference to `cout'
main.o(.text+0x45):/usr/include/g++-3/iostream.h:106: undefined reference to `ostream::operator<<(char const *)'
main.o(.text+0x4e):/usr/include/g++-3/iostream.h:106: undefined reference to `ostream::operator<<(int)'
main.o(.text+0x56):/usr/include/g++-3/iostream.h:106: undefined reference to `endl(ostream &)'
main.o(.text+0x6e):/usr/include/g++-3/iostream.h:106: undefined reference to `cout'
main.o(.text+0x73):/usr/include/g++-3/iostream.h:106: undefined reference to `ostream::operator<<(char const *)'
main.o(.text+0x7b):/usr/include/g++-3/iostream.h:106: undefined reference to `endl(ostream &)'
main.o(.text+0x9f):/usr/include/g++-3/iostream.h:106: undefined reference to `cout'
main.o(.text+0xa4):/usr/include/g++-3/iostream.h:106: undefined reference to `ostream::operator<<(char const *)'
main.o(.text+0xac):/usr/include/g++-3/iostream.h:106: undefined reference to `endl(ostream &)'
main.o(.text+0xda):/usr/include/g++-3/iostream.h:106: undefined reference to `cout'
main.o(.text+0xdf):/usr/include/g++-3/iostream.h:106: undefined reference to `ostream::operator<<(char const *)'
main.o(.text+0xe7):/usr/include/g++-3/iostream.h:106: undefined reference to `endl(ostream &)'
./.libs/libbaz.so: undefined reference to `ostream::operator<<(double)'
collect2: ld returned 1 exit status
make: *** [tagdemo] Error 1
_________________________________________________
On Thu, 2004-02-19 at 12:40, Patrick Welche wrote:
On Wed, Feb 18, 2004 at 01:25:20PM -0800, Lon Canaday wrote: > Sorry, > Here are the details. > main.o(.text+0xe): In function `main': > /usr/include/g++-3/iostream.h:106: undefined reference to `cout' Does this help? Cheers, Patrick Index: tests/tagdemo/foo.cpp =================================================================== RCS file: /cvsroot/libtool/libtool/tests/tagdemo/foo.cpp,v retrieving revision 1.1 diff -u -r1.1 foo.cpp --- tests/tagdemo/foo.cpp 14 Oct 2003 21:46:13 -0000 1.1 +++ tests/tagdemo/foo.cpp 19 Feb 2004 20:35:52 -0000 @@ -20,11 +20,11 @@ // USA. #include "foo.h" -#include <iostream.h> +#include <iostream> +#include <cmath> -#ifdef HAVE_MATH_H -#include <math.h> -#endif +using std::cout; +using std::endl; // Our C functions. int Index: tests/tagdemo/main.cpp =================================================================== RCS file: /cvsroot/libtool/libtool/tests/tagdemo/main.cpp,v retrieving revision 1.1 diff -u -r1.1 main.cpp --- tests/tagdemo/main.cpp 14 Oct 2003 21:46:13 -0000 1.1 +++ tests/tagdemo/main.cpp 19 Feb 2004 20:35:52 -0000 @@ -22,8 +22,10 @@ #include "foo.h" #include "baz.h" -#include <iostream.h> +#include <iostream> +using std::cout; +using std::endl; int main (int, char *[])
_______________________________________________ Libtool mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/libtool
