C++ undefined symbol
Olivier Garbil
ogarbil@palmware.fr
Mon Mar 26 01:34:00 GMT 2001
Hi all,
I have done a back end for our target (a virtual machine) on gcc-2.95.2.
The C works fine but not the C++. If I try to compile this code:
class a
{
public:
static long i;
void foo() {i = 0;}
};
main()
{
a* A = new a;
A->foo();
}
The i attributs is correctly use (as __static_1a_i) but never declared
in the assembler code
produced by g++.
Any hints why ?.
Thanks for all.
ogarbil@palmware.fr
More information about the Gcc-help
mailing list