undefined symbol

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux