|
From: jayshankar n. <n_j...@ya...> - 2009-10-29 18:07:00
|
MinGW Gurus,
I have member function in class A of DLL1 accessing the member function of class B of DLL2 and viceversa.
This results in a cyclic dependency of dll on each other for linking. All the undefined reference.
My question is can i create a .def file for all the undefined references and create a lib.a file(dlltool).
For a function i can simply put its name. But for class and its respective memeber functions whats the naming convention
For example
class A{
public:
getInstance();
send(enum something);
}
func();
Example of .def i have written, which my guess is wrong as its not linking.
LIBRARY DLL2.DLL
EXPORTS
func
A::getInstance
dlltool -d dll1.def -l libdll.a
Appreciate your reply.
Thanks,
Jay
|