Thanks for your input. I have been programming C++ for quite some time and never had to combine with C code, so I really don't know where to start regarding the name mangling, besides I don't want to touch OpenSSL code, what I did, and base on your comments about the libeay32.lib and ssleay32.lib was to issolate the call to the QSslKey class and get rid of those libraries, so it would be just C++ code. But I'm getting the same results. Here is the compile output.
Running build steps for project Tst_QSslKey...
Configuration unchanged, skipping qmake step.
Starting: "C:/Qt/2010.05/mingw/bin/mingw32-make.exe" -w
mingw32-make: Entering directory `C:/Programas C++ Builder/QT_eFact/QSslKey/Tst_QSslKey-build-desktop'
C:/Qt/2010.05/mingw/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `C:/Programas C++ Builder/QT_eFact/QSslKey/Tst_QSslKey-build-desktop'
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\..\Qt\2010.05\qt\include\QtCore" -I"..\..\..\..\Qt\2010.05\qt\include\QtGui" -I"..\..\..\..\Qt\2010.05\qt\include" -I"..\..\..\..\Qt\2010.05\qt\include\QtNetwork" -I"..\..\..\..\Qt\2010.05\qt\include\ActiveQt" -I"debug" -I"." -I"..\Tst_QSslKey" -I"." -I"..\..\..\..\Qt\2010.05\qt\mkspecs\win32-g++" -o debug\mainwindow.o ..\Tst_QSslKey\mainwindow.cpp
C:\Qt\2010.05\qt\bin\moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\..\Qt\2010.05\qt\include\QtCore" -I"..\..\..\..\Qt\2010.05\qt\include\QtGui" -I"..\..\..\..\Qt\2010.05\qt\include" -I"..\..\..\..\Qt\2010.05\qt\include\QtNetwork" -I"..\..\..\..\Qt\2010.05\qt\include\ActiveQt" -I"debug" -I"." -I"..\Tst_QSslKey" -I"." -I"..\..\..\..\Qt\2010.05\qt\mkspecs\win32-g++" -D__GNUC__ -DWIN32 ..\Tst_QSslKey\mainwindow.h -o debug\moc_mainwindow.cpp
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\..\Qt\2010.05\qt\include\QtCore" -I"..\..\..\..\Qt\2010.05\qt\include\QtGui" -I"..\..\..\..\Qt\2010.05\qt\include" -I"..\..\..\..\Qt\2010.05\qt\include\QtNetwork" -I"..\..\..\..\Qt\2010.05\qt\include\ActiveQt" -I"debug" -I"." -I"..\Tst_QSslKey" -I"." -I"..\..\..\..\Qt\2010.05\qt\mkspecs\win32-g++" -o debug\moc_mainwindow.o debug\moc_mainwindow.cpp
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows -o debug\Tst_QSslKey.exe debug/main.o debug/mainwindow.o debug/moc_mainwindow.o -L"c:\Qt\2010.05\qt\lib" -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4
debug/mainwindow.o: In function `MainWindow':
C:\Programas C++ Builder\QT_eFact\QSslKey\Tst_QSslKey-build-desktop/../Tst_QSslKey/mainwindow.cpp:22: undefined reference to `_imp___ZN7QSslKeyC1EP9QIODeviceN4QSsl12KeyAlgorit hmENS2_14EncodingFormatENS2_7KeyTypeERK10QByteArra y'
C:\Programas C++ Builder\QT_eFact\QSslKey\Tst_QSslKey-build-desktop/../Tst_QSslKey/mainwindow.cpp:24: undefined reference to `_imp___ZNK7QSslKey6isNullEv'
C:\Programas C++ Builder\QT_eFact\QSslKey\Tst_QSslKey-build-desktop/../Tst_QSslKey/mainwindow.cpp:27: undefined reference to `_imp___ZN7QSslKeyD1Ev'
C:\Programas C++ Builder\QT_eFact\QSslKey\Tst_QSslKey-build-desktop/../Tst_QSslKey/mainwindow.cpp:27: undefined reference to `_imp___ZN7QSslKeyD1Ev'
C:\Programas C++ Builder\QT_eFact\QSslKey\Tst_QSslKey-build-desktop/../Tst_QSslKey/mainwindow.cpp:22: undefined reference to `_imp___ZN7QSslKeyC1EP9QIODeviceN4QSsl12KeyAlgorit hmENS2_14EncodingFormatENS2_7KeyTypeERK10QByteArra y'
C:\Programas C++ Builder\QT_eFact\QSslKey\Tst_QSslKey-build-desktop/../Tst_QSslKey/mainwindow.cpp:24: undefined reference to `_imp___ZNK7QSslKey6isNullEv'
C:\Programas C++ Builder\QT_eFact\QSslKey\Tst_QSslKey-build-desktop/../Tst_QSslKey/mainwindow.cpp:27: undefined reference to `_imp___ZN7QSslKeyD1Ev'
C:\Programas C++ Builder\QT_eFact\QSslKey\Tst_QSslKey-build-desktop/../Tst_QSslKey/mainwindow.cpp:27: undefined reference to `_imp___ZN7QSslKeyD1Ev'
collect2: ld returned 1 exit status
mingw32-make[1]: Leaving directory `C:/Programas C++ Builder/QT_eFact/QSslKey/Tst_QSslKey-build-desktop'
mingw32-make: Leaving directory `C:/Programas C++ Builder/QT_eFact/QSslKey/Tst_QSslKey-build-desktop'
mingw32-make[1]: *** [debug\Tst_QSslKey.exe] Error 1
mingw32-make: *** [debug] Error 2
The process "C:/Qt/2010.05/mingw/bin/mingw32-make.exe" exited with code %2.
Error while building project Tst_QSslKey (target: Desktop)
When executing build step 'Make'
Bookmarks