I'm having problems compiling and linking my program on AIX using gcc and the AIX linking. This program was orginally coded on RedHat Enterprise 4 and compiles and links fine there. I'm getting multiple undefined symbols on the link, even though I have all the libraries on the command line and the paths are correct. Below is the output from the make: ================================================================ make all make build g++ -maix64 -Xlinker -bexpfull -Xlinker -brtl -I. -I/usr/include/c++ -I/app/oracle/ora10g/rdbms/public -I../include -L/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0 -L/lib -L/usr/lib -L/app/oracle/ora10g/lib -L../lib -L/home/mhuff/source/HugoBoss/cpp/UPCLabelPrint_3 -lclntsh -locci -lLog -lLabelUtil -lRFWindowBase -lncurses -lLog -lgcc -lstdc++ -lsupc++ -lncurses -o UPCLabelPrintWin UPCLabelPrintWin.cpp main.cpp ld: 0711-317 ERROR: Undefined symbol: .std::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator=(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) ld: 0711-317 ERROR: Undefined symbol: std::cout ld: 0711-317 ERROR: Undefined symbol: .std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*) ld: 0711-317 ERROR: Undefined symbol: std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&) ld: 0711-317 ERROR: Undefined symbol: .std::basic_ostream<char, std::char_traits<char> >::operator<<(std::basic_ostream<char, std::char_traits<char> >& (*)(std::basic_ostream<char, std::char_traits<char> >&)) ld: 0711-317 ERROR: Undefined symbol: .std::basic_ostream<char, std::char_traits<char> >::operator<<(int) ld: 0711-317 ERROR: Undefined symbol: .operator new(unsigned long) ld: 0711-317 ERROR: Undefined symbol: .std::basic_ofstream<char, std::char_traits<char> >::basic_ofstream() ld: 0711-317 ERROR: Undefined symbol: .std::basic_ios<char, std::char_traits<char> >::basic_ios() ld: 0711-317 ERROR: Undefined symbol: typeinfo for std::basic_ostream<char, std::char_traits<char> > ld: 0711-317 ERROR: Undefined symbol: std::basic_ostream<char, std::char_traits<char> >::~basic_ostream() ld: 0711-317 ERROR: Undefined symbol: std::basic_ostream<char, std::char_traits<char> >::~basic_ostream() ld: 0711-317 ERROR: Undefined symbol: virtual thunk to std::basic_ostream<char, std::char_traits<char> >::~basic_ostream() ld: 0711-317 ERROR: Undefined symbol: virtual thunk to std::basic_ostream<char, std::char_traits<char> >::~basic_ostream() ld: 0711-317 ERROR: Undefined symbol: typeinfo for std::basic_ofstream<char, std::char_traits<char> > ld: 0711-317 ERROR: Undefined symbol: std::basic_ofstream<char, std::char_traits<char> >::~basic_ofstream() ld: 0711-317 ERROR: Undefined symbol: std::basic_ofstream<char, std::char_traits<char> >::~basic_ofstream() ld: 0711-317 ERROR: Undefined symbol: virtual thunk to std::basic_ofstream<char, std::char_traits<char> >::~basic_ofstream() ld: 0711-317 ERROR: Undefined symbol: virtual thunk to std::basic_ofstream<char, std::char_traits<char> >::~basic_ofstream() ld: 0711-317 ERROR: Undefined symbol: vtable for __cxxabiv1::__si_class_type_info ld: 0711-317 ERROR: Undefined symbol: __gxx_personality_v0 ld: 0711-317 ERROR: Undefined symbol: .std::basic_ios<char, std::char_traits<char> >::~basic_ios() ld: 0711-317 ERROR: Undefined symbol: ._Unwind_Resume ld: 0711-317 ERROR: Undefined symbol: .std::basic_ofstream<char, std::char_traits<char> >::~basic_ofstream() ld: 0711-317 ERROR: Undefined symbol: .operator delete(void*) ld: 0711-317 ERROR: Undefined symbol: .__cxa_guard_acquire ld: 0711-317 ERROR: Undefined symbol: .__cxa_guard_release ld: 0711-317 ERROR: Undefined symbol: .__cxa_guard_abort ld: 0711-317 ERROR: Undefined symbol: .std::ios_base::Init::Init() ld: 0711-317 ERROR: Undefined symbol: .std::ios_base::Init::~Init() ld: 0711-317 ERROR: Undefined symbol: .std::basic_ostream<char, std::char_traits<char> >::flush() ld: 0711-317 ERROR: Undefined symbol: .std::basic_string<char, std::char_traits<char>, std::allocator<char> >::size() const ld: 0711-317 ERROR: Undefined symbol: .oracle::occi::Environment::createEnvironment(oracle::occi::Environment::Mod e, void*, void* (*)(void*, unsigned long), void* (*)(void*, void*, unsigned long), void (*)(void*, void*)) ld: 0711-317 ERROR: Undefined symbol: .std::basic_ostream<char, std::char_traits<char> >& std::operator<< <char, std::char_traits<char>, std::allocator<char> >(std::basic_ostream<char, std::char_traits<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) ld: 0711-317 ERROR: Undefined symbol: .__cxa_get_exception_ptr ld: 0711-317 ERROR: Undefined symbol: .oracle::occi::SQLException::SQLException(oracle::occi::SQLException const&) ld: 0711-317 ERROR: Undefined symbol: .std::terminate() ld: 0711-317 ERROR: Undefined symbol: .__cxa_begin_catch ld: 0711-317 ERROR: Undefined symbol: .oracle::occi::SQLException::what() const ld: 0711-317 ERROR: Undefined symbol: .oracle::occi::SQLException::~SQLException() ld: 0711-317 ERROR: Undefined symbol: .__cxa_end_catch ld: 0711-317 ERROR: Undefined symbol: .clear ld: 0711-317 ERROR: Undefined symbol: .initscr ld: 0711-317 ERROR: Undefined symbol: stdscr ld: 0711-317 ERROR: Undefined symbol: .keypad ld: 0711-317 ERROR: Undefined symbol: .nonl ld: 0711-317 ERROR: Undefined symbol: .raw ld: 0711-317 ERROR: Undefined symbol: .noecho ld: 0711-317 ERROR: Undefined symbol: .refresh ld: 0711-317 ERROR: Undefined symbol: .wgetch ld: 0711-317 ERROR: Undefined symbol: .wdelch ld: 0711-317 ERROR: Undefined symbol: .move ld: 0711-317 ERROR: Undefined symbol: .waddch ld: 0711-317 ERROR: Undefined symbol: .newwin ld: 0711-317 ERROR: Undefined symbol: .box ld: 0711-317 ERROR: Undefined symbol: .std::basic_string<char, std::char_traits<char>, std::allocator<char> >::c_str() const ld: 0711-317 ERROR: Undefined symbol: .mvwprintw ld: 0711-317 ERROR: Undefined symbol: .std::basic_string<char, std::char_traits<char>, std::allocator<char> >::substr(unsigned long, unsigned long) const ld: 0711-317 ERROR: Undefined symbol: .std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string() ld: 0711-317 ERROR: Undefined symbol: .wrefresh ld: 0711-317 ERROR: Undefined symbol: .delwin ld: 0711-317 ERROR: Undefined symbol: .endwin ld: 0711-317 ERROR: Undefined symbol: .oracle::occi::Environment::terminateEnvironment(oracle::occi::Environment*) ld: 0711-317 ERROR: Undefined symbol: .std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) ld: 0711-317 ERROR: Undefined symbol: .std::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(char const*) ld: 0711-317 ERROR: Undefined symbol: .std::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) ld: 0711-317 ERROR: Undefined symbol: .std::basic_ofstream<char, std::char_traits<char> >::open(char const*, std::_Ios_Openmode) ld: 0711-317 ERROR: Undefined symbol: .std::basic_ofstream<char, std::char_traits<char> >::is_open() ld: 0711-317 ERROR: Undefined symbol: .std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string() ld: 0711-317 ERROR: Undefined symbol: .std::basic_ifstream<char, std::char_traits<char> >::basic_ifstream(char const*, std::_Ios_Openmode) ld: 0711-317 ERROR: Undefined symbol: .std::basic_ios<char, std::char_traits<char> >::operator!() const ld: 0711-317 ERROR: Undefined symbol: .std::basic_istream<char, std::char_traits<char> >& std::getline<char, std::char_traits<char>, std::allocator<char> >(std::basic_istream<char, std::char_traits<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&) ld: 0711-317 ERROR: Undefined symbol: .std::basic_string<char, std::char_traits<char>, std::allocator<char> >::find(char const*, unsigned long) const ld: 0711-317 ERROR: Undefined symbol: .std::basic_string<char, std::char_traits<char>, std::allocator<char> >::compare(char const*) const ld: 0711-317 ERROR: Undefined symbol: .std::basic_ios<char, std::char_traits<char> >::eof() const ld: 0711-317 ERROR: Undefined symbol: .std::basic_ifstream<char, std::char_traits<char> >::close() ld: 0711-317 ERROR: Undefined symbol: .std::basic_ifstream<char, std::char_traits<char> >::~basic_ifstream() ld: 0711-317 ERROR: Undefined symbol: .std::__throw_out_of_range(char const*) ld: 0711-317 ERROR: Undefined symbol: .std::basic_ostream<char, std::char_traits<char> >::operator<<(unsigned long) ld: 0711-317 ERROR: Undefined symbol: .waddnstr ld: 0711-317 ERROR: Undefined symbol: vtable for __cxxabiv1::__class_type_info ld: 0711-317 ERROR: Undefined symbol: typeinfo for oracle::occi::SQLException ld: 0711-317 ERROR: Undefined symbol: .std::allocator<char>::allocator() ld: 0711-317 ERROR: Undefined symbol: .std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&) ld: 0711-317 ERROR: Undefined symbol: .std::allocator<char>::~allocator() ld: 0711-317 ERROR: Undefined symbol: .std::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator+=(char const*) ld: 0711-317 ERROR: Undefined symbol: .LabelUtil::instance() ld: 0711-317 ERROR: Undefined symbol: .LabelUtil::initialize() ld: 0711-317 ERROR: Undefined symbol: .LabelUtil::setLabelName(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&) ld: 0711-317 ERROR: Undefined symbol: .LabelUtil::setTmpPath(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&) ld: 0711-317 ERROR: Undefined symbol: .std::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator=(char const*) ld: 0711-317 ERROR: Undefined symbol: .LabelUtil::setSubstitutionToken(char const*, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&) ld: 0711-317 ERROR: Undefined symbol: .LabelUtil::setSubstitutionToken(char const*, char const*) ld: 0711-317 ERROR: Undefined symbol: .LabelUtil::setLabelTemplateFile(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&) ld: 0711-317 ERROR: Undefined symbol: .LabelUtil::setPrintSpoolDir(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&) ld: 0711-317 ERROR: Undefined symbol: .LabelUtil::process() ld: 0711-317 ERROR: Undefined symbol: .std::__throw_bad_alloc() ld: 0711-317 ERROR: Undefined symbol: .__cxa_rethrow ld: 0711-317 ERROR: Undefined symbol: .std::__throw_length_error(char const*) ld: 0711-317 ERROR: Undefined symbol: .__register_frame_info_table ld: 0711-317 ERROR: Undefined symbol: .__deregister_frame_info ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. collect2: ld returned 8 exit status make: 1254-004 The error code from the last command is 1. Stop. make: 1254-004 The error code from the last command is 2. -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ .