From: Keith M. <kei...@us...> - 2009-07-22 17:07:58
|
On Wednesday 22 July 2009 16:36:16 Marc Vaillant wrote: > > Therefore: Has anyone an idea how to mix C++ GCC Dlls and C++ > > MSVC applications without special "extern C" workarounds? > > I need fully access to my C++ code and classes. Perhaps there is > > a different tutorial? > > Yes, read the following article carefully: > http://chadaustin.me/cppinterface.html. Basically, if you write > your classes to have only virtual functions, they don't need to be > exported. Then you will just need C mangled factory methods to > create and destroy instances of them. There was a FAQ about this, linked to an article on the old MinGWiki; I just migrated the article content into the new wiki: http://mingw.org/wiki/MixingCompilers Marc, that article still shows the original aegisknight reference, which I notice redirects to the same address you give; do you think it may be prudent to update the reference? Or to write a derivative work, locally hosted, in case it moves again, maybe irretrievably? -- Regards, Keith. |