This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]