Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C++
I just want get this portion of the code to compile.
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Charles Wilson, post: 5021103"] [i][i][i] This is what I get [cwilson@orion Hw7]$ gcc hw7.cpp /tmp/ccN2xrWu.o: In function `main::._84::._84()': hw7.cpp:(.text+0x15): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string()' /tmp/ccN2xrWu.o: In function `main::._84::~._84()': hw7.cpp:(.text+0x31): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' /tmp/ccN2xrWu.o: In function `main::._84::operator=(._84 const&)': hw7.cpp:(.text+0x65): undefined reference to `std::basic_string<char, std::allocator<char> > const&)' /tmp/ccN2xrWu.o: In function `__static_initialization_and_destruction_0(int, int)': hw7.cpp:(.text+0xa1): undefined reference to `std::ios_base::Init::Init()' /tmp/ccN2xrWu.o: In function `__tcf_0': hw7.cpp:(.text+0xe4): undefined reference to `std::ios_base::Init::~Init()' /tmp/ccN2xrWu.o: In function `main': hw7.cpp:(.text+0x1ee): undefined reference to `std::basic_ifstream<char, std::char_traits<char> >::basic_ifstream()' hw7.cpp:(.text+0x1fa): undefined reference to `std::basic_ofstream<char, std::char_traits<char> >::basic_ofstream()' hw7.cpp:(.text+0x210): undefined reference to `std::basic_ifstream<char, std::char_traits<char> >::open(char const*, std::_Ios_Openmode)' hw7.cpp:(.text+0x232): undefined reference to `std::basic_ofstream<char, std::char_traits<char> >::open(char const*, std::_Ios_Openmode)' hw7.cpp:(.text+0x260): undefined reference to `std::basic_istream<char, std::char_traits<char> >& hw7.cpp:(.text+0x2bc): undefined reference to `std::basic_istream<char, std::char_traits<char> >& hw7.cpp:(.text+0x2cf): undefined reference to `std::basic_ios<char, std::char_traits<char> >::eof() const' hw7.cpp:(.text+0x406): undefined reference to hw7.cpp:(.text+0x422): undefined reference to hw7.cpp:(.text+0x437): undefined reference to hw7.cpp:(.text+0x453): undefined reference to /tmp/ccN2xrWu.o: In function `bool std::operator><char, std::char_traits<char>, std::allocator<char> >(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': hw7.cpp:(.text._ZStgtIcSt11char_traitsIcESaIcEEbRKSbIT_T0_T1_ES8_[bool std::allocator<char> > const&)]+0x19): undefined reference to std::allocator<char> > const&) const' /tmp/ccN2xrWu.o:(.eh_frame+0x13): undefined reference to `__gxx_personality_v0' collect2: ld returned 1 exit status [cwilson@orion Hw7]$[/i][/i][/i] [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
I just want get this portion of the code to compile.
Top