[Qt-interest] Making a Qt program into a dynamic library
Guido Seifert
Wargand at gmx.de
Wed Dec 16 15:54:08 CET 2009
> But when you say "it was the extern "C" which was missing", where exactly
> did you place it then? Again, it should not have any influence on the
> outcome of dlopen() - only on dlsym()!
That's what I also would have expected. But I suppose someone with more experience of the GCC/DLL architecture might tell us that it is totally natural that dlopen crashes. :-)
Here were I put the extern "C":
main.cpp of my app/lib (slightly cleaned):
#include <QApplication>
<few more includes>
//extern "C" <---- comment/uncomment -> crash/working
int start(int argc, char *argv[])
{
QApplication a( argc, argv );
<some of my stuff>
int result = a.exec();
return result;
}
--
Preisknaller: GMX DSL Flatrate für nur 16,99 Euro/mtl.!
http://portal.gmx.net/de/go/dsl02
More information about the Qt-interest-old
mailing list