bargi
January 22nd, 2008, 07:49 AM
Hi,
I have the linking problem.........
I have compile the program but it is giving me linking error as follow:
[code]
Runtime.cpp:(.text+0x19f3): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
Runtime.cpp:(.text+0x1a03): undefined reference to `std::allocator<char>::~allocator()'
Runtime.cpp:(.text+0x1a16): undefined reference to `std::allocator<char>::~allocator()'
std::char_traits<char>, std::allocator<char> > const&)':
Runtime.cpp:(.text+0x1a78): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
Runtime.cpp:(.text+0x1a8b): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
StringUtilities.cpp:(.text+0x1c): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
`__static_initialization_and_destruction_0(int, int)':
StringUtilities.cpp:(.text+0x57): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string()'
[code]
One more thing is that I am using boost libraries...when I compile earlier it was giving error ,so I used -fpermissive to remove it. But now it is giving me linking error.
Can anybody help me in resolving this problem.
Thanks
I have the linking problem.........
I have compile the program but it is giving me linking error as follow:
[code]
Runtime.cpp:(.text+0x19f3): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
Runtime.cpp:(.text+0x1a03): undefined reference to `std::allocator<char>::~allocator()'
Runtime.cpp:(.text+0x1a16): undefined reference to `std::allocator<char>::~allocator()'
std::char_traits<char>, std::allocator<char> > const&)':
Runtime.cpp:(.text+0x1a78): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
Runtime.cpp:(.text+0x1a8b): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
StringUtilities.cpp:(.text+0x1c): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
`__static_initialization_and_destruction_0(int, int)':
StringUtilities.cpp:(.text+0x57): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string()'
[code]
One more thing is that I am using boost libraries...when I compile earlier it was giving error ,so I used -fpermissive to remove it. But now it is giving me linking error.
Can anybody help me in resolving this problem.
Thanks