bhiksha
06-13-2002, 01:08 PM
Hi,
I hope this isnt the wrong forum for this.
I have gcc 3.0.4 on my redhat 7.1 linux box.
Im trying to compile the C++ NR.
I can compile the libraries (with make lib)
But if I simply give a make (i.e. try to compile
xairy, or other demos) I get hundreds of errors
of the kind Im appending below (I have attached
the first few lines of the output I get from
Make.
Im not sure what is wrong.
Any advice would be appreciated.
Thanks,
R.B
----- OUTPUT FROM MAKE ------------
gcc3 -I/homes/bhiksha/library/NR/recipes_cpp/utils -I. -o xairy.out xairy.o airy.o bessik.o bessjy.o beschb.o chebev.o -lm
xairy.o: In function `main':
xairy.o(.text+0x209): undefined reference to `std::cout'
xairy.o(.text+0x252): undefined reference to `std::cout'
xairy.o(.text+0x2b5): undefined reference to `std::cout'
xairy.o(.text+0x329): undefined reference to `std::cout'
xairy.o(.text+0x39e): undefined reference to `std::cout'
xairy.o(.text+0x412): more undefined references to `std::cout' follow
xairy.o: In function `__static_initialization_and_destruction_0(int, int)':
xairy.o(.text+0x812): undefined reference to `std::ios_base::Init::Init()'
xairy.o(.text+0x8ee): undefined reference to `std::ios_base::Init::~Init()'
xairy.o: In function `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)':
xairy.o(.gnu.linkonce.t._ZStlsISt11char_traitsIcEE RSt13basic_ostreamIcT_ES5_PKc+0xff): undefined reference to `__cxa_begin_catch'
xairy.o(.gnu.linkonce.t._ZStlsISt11char_traitsIcEE RSt13basic_ostreamIcT_ES5_PKc+0x154): undefined reference to `__cxa_rethrow'
xairy.o(.gnu.linkonce.t._ZStlsISt11char_traitsIcEE RSt13basic_ostreamIcT_ES5_PKc+0x15f): undefined reference to `__cxa_end_catch'
...
...
...
I hope this isnt the wrong forum for this.
I have gcc 3.0.4 on my redhat 7.1 linux box.
Im trying to compile the C++ NR.
I can compile the libraries (with make lib)
But if I simply give a make (i.e. try to compile
xairy, or other demos) I get hundreds of errors
of the kind Im appending below (I have attached
the first few lines of the output I get from
Make.
Im not sure what is wrong.
Any advice would be appreciated.
Thanks,
R.B
----- OUTPUT FROM MAKE ------------
gcc3 -I/homes/bhiksha/library/NR/recipes_cpp/utils -I. -o xairy.out xairy.o airy.o bessik.o bessjy.o beschb.o chebev.o -lm
xairy.o: In function `main':
xairy.o(.text+0x209): undefined reference to `std::cout'
xairy.o(.text+0x252): undefined reference to `std::cout'
xairy.o(.text+0x2b5): undefined reference to `std::cout'
xairy.o(.text+0x329): undefined reference to `std::cout'
xairy.o(.text+0x39e): undefined reference to `std::cout'
xairy.o(.text+0x412): more undefined references to `std::cout' follow
xairy.o: In function `__static_initialization_and_destruction_0(int, int)':
xairy.o(.text+0x812): undefined reference to `std::ios_base::Init::Init()'
xairy.o(.text+0x8ee): undefined reference to `std::ios_base::Init::~Init()'
xairy.o: In function `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)':
xairy.o(.gnu.linkonce.t._ZStlsISt11char_traitsIcEE RSt13basic_ostreamIcT_ES5_PKc+0xff): undefined reference to `__cxa_begin_catch'
xairy.o(.gnu.linkonce.t._ZStlsISt11char_traitsIcEE RSt13basic_ostreamIcT_ES5_PKc+0x154): undefined reference to `__cxa_rethrow'
xairy.o(.gnu.linkonce.t._ZStlsISt11char_traitsIcEE RSt13basic_ostreamIcT_ES5_PKc+0x15f): undefined reference to `__cxa_end_catch'
...
...
...