Hi
I am trying to get myself som debugging information from the application I am creating and in the project file I added:
Qt Code:
QT += opengl debug CONFIG += consoleTo copy to clipboard, switch view to plain text mode
and then used qDebug() at the appropriate places within my code. However when I "make" the program I get the following error:
If I instead try to compile with "make debug" I get the following error:g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-rel
oc -Wl,-s -Wl,-subsystem,console -mthreads -Wl -o release\gl.exe release/GLWidge
t.o release/GLWindow.o release/main.o release/moc_GLWidget.o -L"c:\Qt\4.3.4\lib
" -lopengl32 -lglu32 -lgdi32 -luser32 -lQtOpenGL4 -lQtGui4 -lQtCore4
/mingw/lib/libmingw32.a(main.o)(.text+0x106):main.c: undefined reference to `Win
Main@16'
collect2: ld returned 1 exit status
mingw32-make[1]: *** [release\gl.exe] Error 1
This is getting waaaay confusing for me. I have no idea what either of these means. All I am trying to do is to get some easy access to information from my app while I write it, but QT isn't making it easy for me unfortunately...g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-rel
oc -Wl,-subsystem,console -mthreads -Wl -o debug\gl.exe debug/GLWidget.o debug/G
LWindow.o debug/main.o debug/moc_GLWidget.o -L"c:\Qt\4.3.4\lib" -lopengl32 -lgl
u32 -lgdi32 -luser32 -lQtOpenGLd4 -lQtGuid4 -lQtCored4
C:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\ mingw32\bin\ld.exe: cannot fin
d -lQtOpenGLd4
collect2: ld returned 1 exit status
mingw32-make[1]: *** [debug\gl.exe] Error 1
Any help?
Bookmarks