This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
undefined symbol
- From: lysa <marialisa dot raucci at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 24 Sep 2007 10:15:18 -0700 (PDT)
- Subject: undefined symbol
Hi
I have a library compiled with this flag:
LDFLAGS= -avoid-version -lstdc++ -Wall
this lib have 2 classes: A and B. A includes B
this is a short example:
class B {..}
class A {..
B b;
}
there is an extern function that CREATE un object of type A in this way:
extern "C"
{ void *func_create_A()
{
return new A();
}
}
this operation generates the UNDEFINED SYMBOL error on B class
How can I solve?
thanks
Lysa
--
View this message in context: http://www.nabble.com/undefined-symbol-tf4510439.html#a12864125
Sent from the gcc - Help mailing list archive at Nabble.com.