December 15, 2010

gronerth gronerth
Lab Rat
76 posts

qtTelnet error in compilation

 

Hello everyone,

I am trying to compile “qttelnet-2.1_1-opensource” but i am having some issues:

C:\QtProjects\qttelnet-2.1_1-opensource\qttelnet-2.1_1-opensource>make
cd buildlib\ && mingw32-make -f Makefile
mingw32-make1: Entering directory `C:/QtProjects/qttelnet-2.1_1-opensource/qttelnet-2.1_1-opensource/buildlib’
mingw32-make -f Makefile.Debug
mingw32-make2: Entering directory `C:/QtProjects/qttelnet-2.1_1-opensource/qttelnet-2.1_1-opensource/buildlib’
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows -o debug\Jose.exe -L“c:\Qt\2010.05-rc1\qt\lib” -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4
c:\Qt\2010.05-rc1\qt\lib/libqtmaind.a(qtmain_win.o): In function `WinMain@16’:
C:\qt-greenhouse\Trolltech\Code_less_create_more\Trolltech\Code_less_create_more\Troll\4.6\qt\src\winmain/qtmain_win.cpp:131: undefined reference to `qMain(int, char**)’
collect2: ld returned 1 exit status
mingw32-make2: *** [debug\Jose.exe] Error 1
mingw32-make2: Leaving directory `C:/QtProjects/qttelnet-2.1_1-opensource/qtte
lnet-2.1_1-opensource/buildlib’
mingw32-make1: *** [debug] Error 2
mingw32-make1: Leaving directory `C:/QtProjects/qttelnet-2.1_1-opensource/qtte
lnet-2.1_1-opensource/buildlib’
mingw32-make: *** [sub-buildlib-make_default-ordered] Error 2

Thanks in advance for ur help,

José T.

 Signature 

——————————
JETG

3 replies

December 18, 2010

Volker Volker
Ant Farmer
5428 posts

From what google gives me as results, it could be that there are multiple versions of gcc/g++ are installed: one from the SDK, one or more that you did install yourself. Did you check, that your lib did grab the right one?

December 21, 2010

gronerth gronerth
Lab Rat
76 posts

I have compile the library from the “Qt Command Prompt”, so it just have a single version of mingw, and a single version of Qt. Have you test before to try compile it?

 Signature 

——————————
JETG

December 21, 2010

Volker Volker
Ant Farmer
5428 posts

Hm, sorry, never had to deal with MinGW. It was only some google research on the error message. Maybe someone else, e.g. from the Qt Windows group, can help you further.

 
  ‹‹ Timeline widget      [Solved] problem with TextFinder tutorial ››

You must log in to post a reply. Not a member yet? Register here!