Thread: m$vc++6 basic help

  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    26

    m$vc++6 basic help

    i copied the hello world code from the tutorial and pasted in c++. when i go to "compile hello.cpp" it works just fine, but when i click "build hello.exe i get some kind of linking error. what am i doing wrong. thank you
    Last edited by CobraCC; 03-29-2003 at 04:06 PM.

  2. #2
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    post the error perhaps?

  3. #3
    Registered User
    Join Date
    Mar 2003
    Posts
    26
    here is the error i get:

    Linking...
    LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
    Debug/hello.exe : fatal error LNK1120: 1 unresolved externals
    Error executing link.exe.

    hello.exe - 2 error(s), 0 warning(s)

  4. #4
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    Create a Win32 Console Application, not a Win32 Application.
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  5. #5
    Registered User
    Join Date
    Mar 2003
    Posts
    26
    THX xsquared!

    im reading the tutorials to get a head start next year. thx again

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. [ANN] New script engine (Basic sintax)
    By MKTMK in forum C++ Programming
    Replies: 1
    Last Post: 11-01-2005, 10:28 AM
  2. what are your thoughts on visual basic?
    By orion- in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 09-22-2005, 04:28 AM
  3. visual basic vs C or C++
    By FOOTOO in forum Windows Programming
    Replies: 5
    Last Post: 02-06-2005, 08:41 PM
  4. Basic Window Creation, Dev C++ 4.9.9.0 Linking Error
    By Tronic in forum Windows Programming
    Replies: 2
    Last Post: 11-27-2004, 06:03 PM