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

Discussion in 'C++' started by Milan Krejci, Aug 15, 2007.

  1. Milan Krejci

    Milan Krejci Guest

    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
     
    Milan Krejci, Aug 15, 2007
    #1
    1. Advertising

  2. 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
     
    Victor Bazarov, Aug 15, 2007
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Pmb

    std::cout vs cout

    Pmb, Jun 2, 2004, in forum: C++
    Replies:
    2
    Views:
    4,411
    Leor Zolman
    Jun 2, 2004
  2. Stefan Ram

    Re: cout vs std::cout

    Stefan Ram, Sep 28, 2008, in forum: C++
    Replies:
    7
    Views:
    481
  3. Hendrik Schober

    Re: cout vs std::cout

    Hendrik Schober, Sep 28, 2008, in forum: C++
    Replies:
    7
    Views:
    444
    Jerry Coffin
    Oct 7, 2008
  4. saurabh29789

    Sending std::cout to std::cout !!

    saurabh29789, Jun 11, 2009, in forum: C++
    Replies:
    1
    Views:
    293
    Harald Finster
    Jun 11, 2009
  5. saurabh29789

    Sending std::cout to std::cout

    saurabh29789, Jun 11, 2009, in forum: C++
    Replies:
    2
    Views:
    344
    Rolf Magnus
    Jun 12, 2009
Loading...

Share This Page