Error when building

This is a discussion on Error when building within the C++ Programming forums, part of the General Programming Boards category; Im pretty new to C++ and am not sure how to fix this error. Every time i try to Build ...

  1. #1
    Registered User
    Join Date
    Jan 2004
    Posts
    6

    Error when building

    Im pretty new to C++ and am not sure how to fix this error. Every time i try to Build my programs i get the error messages.

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

    Can someone tell me what im missing or what ive done wrong?

  2. #2
    Even death may die... Dante Shamest's Avatar
    Join Date
    Apr 2003
    Location
    Malaysia
    Posts
    970
    You have created the wrong project type.

    You should have created a Win32 Console Project.

  3. #3
    Registered User
    Join Date
    Jan 2004
    Posts
    6
    Alright. What is the big difference?

  4. #4
    Even death may die... Dante Shamest's Avatar
    Join Date
    Apr 2003
    Location
    Malaysia
    Posts
    970
    A Win32 Console project is used for terminal programming.
    A Win32 project is used for Graphical User Interface programming (well, most of the time).

  5. #5
    Registered User
    Join Date
    Jan 2004
    Posts
    6
    Thankyou

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 0
    Last Post: 06-08-2009, 05:33 PM
  2. Undertaking Website Building Project and Application Software Development
    By Programmer168 in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 03-21-2009, 04:44 AM
  3. GUI building, is RAD the way to go?
    By indigo0086 in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 09-21-2007, 09:36 PM
  4. Warning when building!
    By electrolove in forum C Programming
    Replies: 21
    Last Post: 02-12-2003, 08:39 PM
  5. Building a laptop?
    By alpha in forum Tech Board
    Replies: 15
    Last Post: 02-05-2003, 06:22 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21