By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,009 Members | 1,767 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,009 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Aug 15 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Milan Krejci wrote:
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
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Aug 15 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.