undefined symbol

lysa marialisa.raucci@gmail.com
Mon Sep 24 18:04:00 GMT 2007


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 A {..
B b;
}
class 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-tf4510401.html#a12863997
Sent from the gcc - Help mailing list archive at Nabble.com.



More information about the Gcc-help mailing list