This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Unsatisfied symbols: vtable and VTT ?
- From: "Hultman, Sten" <sten dot hultman at cgey dot com>
- To: "'gcc-help at gcc dot gnu dot org'" <gcc-help at gcc dot gnu dot org>
- Date: Thu, 7 Mar 2002 12:02:55 +0100
- Subject: Unsatisfied symbols: vtable and VTT ?
Hi,
When I port an application from 2.95 on HP-UX10.20 to 3.0.3 on HP-UX11.00 I
fail to link due to
unsatisfied symbols vtable and VTT.
I have isolated the critical code in the following test program.
I would appreciate any help so solve this problem.
Kindest regards
Sten Hultman
[127] % g++ -fno-implicit-templates
-I/home/jalpman/gnu64/lib/gcc-lib/hppa64-hp-hpux11.00/3.0.3/include/g++
-DSS_64BIT_SERVER -o fstreamtest -lstdc++ fstreamtest.cc
ld: Unsatisfied symbol "vtable for std::basic_fstream<char,
std::char_traits<char> >" in file /var/tmp/ccMDxFav.o
ld: Unsatisfied symbol "VTT for std::basic_fstream<char,
std::char_traits<char> >" in file /var/tmp/ccMDxFav.o
2 errors.
collect2: ld returned 1 exit status
[128] %
[128] %
[128] % more fstreamtest.cc
#include <iostream>
#include <fstream>
using namespace std;
class Test {
private:
fstream f;
public:
Test();
virtual ~Test();
};
Test::Test() {};
Test::~Test() {};
int main()
{
Test t;
cout << "fstreamtest" << endl;
exit(0);
}
This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst & Young Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.