std::cout doesn't work in windows qt app

M

Milan Krejci

i'm getting an error :
g++ -enable-stdcall-fixup -Wl,-enable-auto-import
-Wl,-enable-runtime-pseudo-rel
oc -Wl,-s -Wl,-subsystem,console -mthreads -Wl -o "release\doba8.exe"
release\ma
in.o release\myqtapp.o release\moc_myqtapp.o -L"c:\Qt\4.3.0\lib"
-lQtGui4 -lQtC
ore4
/mingw/lib/libmingw32.a(main.o):main.c:(.text+0x104): undefined
reference to `Wi
nMain@16'
collect2: ld returned 1 exit status

when i try to compile otherwise fully working app. i added CONFIG +=
console to my project file. sorry if it is a bit off-topic
 
V

Victor Bazarov

Milan said:
i'm getting an error :
g++ -enable-stdcall-fixup -Wl,-enable-auto-import
-Wl,-enable-runtime-pseudo-rel
oc -Wl,-s -Wl,-subsystem,console -mthreads -Wl -o "release\doba8.exe"
release\ma
in.o release\myqtapp.o release\moc_myqtapp.o -L"c:\Qt\4.3.0\lib"
-lQtGui4 -lQtC
ore4
/mingw/lib/libmingw32.a(main.o):main.c:(.text+0x104): undefined
reference to `Wi
nMain@16'
collect2: ld returned 1 exit status

when i try to compile otherwise fully working app. i added CONFIG +=
console to my project file. sorry if it is a bit off-topic

It is off-topic because it pertains to Windows and Qt programming,
and not to C++ language itself. Try a Windows programming newsgroup.
I don't know how active is 'comp.os.ms-windows.programmer' nowadays,
if it isn't, find the appropriate one from 'microsoft.public.*'
hierarchy or ask in a Qt online forum.

V
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Error 1
Need Help Building PythonQt on Windows 4

Members online

No members online now.

Forum statistics

Threads
473,992
Messages
2,570,220
Members
46,807
Latest member
ryef

Latest Threads

Top