Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > std::cout doesn't work in windows qt app

Reply
Thread Tools

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

 
 
Milan Krejci
Guest
Posts: n/a
 
      08-15-2007
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
 
Reply With Quote
 
 
 
 
Victor Bazarov
Guest
Posts: n/a
 
      08-15-2007
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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
the easiest way to convert a .net windows app to web app? tom ASP .Net 4 10-24-2008 05:57 PM
windows app vs web based app Robert Lie ASP .Net 2 12-20-2005 03:55 PM
Integrating Legacy Windows app with ASP.Net app John Stockton ASP .Net 2 10-12-2005 04:17 PM
debug Windows app works but, not web app =?Utf-8?B?R2lhbmNhcmxv?= ASP .Net 0 09-26-2005 06:16 PM
Can connect to SQLServer from windows app, not from web app jhcorey@yahoo.com ASP .Net 1 08-02-2005 01:27 PM



Advertisments