Thread: compiling problem! plz help!

  1. #1
    Registered User
    Join Date
    Apr 2005
    Posts
    27

    compiling problem! plz help!

    when i compile my program, it reads:
    [linker error] undefined reference to WinMain@16
    id returned 1 exit status
    [Build error] [Project1.exe] Error 1
    compiler:dev-C++
    asr

  2. #2
    C++ Enthusiast jmd15's Avatar
    Join Date
    Mar 2005
    Location
    MI
    Posts
    532
    What compiler? I remember getting that error once in the older version of Dev-C++ when I forgot to tell it to compile for Win32.
    Trinity: "Neo... nobody has ever done this before."
    Neo: "That's why it's going to work."
    c9915ec6c1f3b876ddf38514adbb94f0

  3. #3
    Registered User
    Join Date
    Apr 2005
    Posts
    27
    dev c++
    compiler:dev-C++
    asr

  4. #4
    C++ Enthusiast jmd15's Avatar
    Join Date
    Mar 2005
    Location
    MI
    Posts
    532
    Yeah, but what version? Most likely the newest one?
    Trinity: "Neo... nobody has ever done this before."
    Neo: "That's why it's going to work."
    c9915ec6c1f3b876ddf38514adbb94f0

  5. #5
    Registered User
    Join Date
    Apr 2005
    Posts
    27
    4.9.9.2
    compiler:dev-C++
    asr

  6. #6
    C++ Enthusiast jmd15's Avatar
    Join Date
    Mar 2005
    Location
    MI
    Posts
    532
    Did you download the Win32 DevPak?
    Trinity: "Neo... nobody has ever done this before."
    Neo: "That's why it's going to work."
    c9915ec6c1f3b876ddf38514adbb94f0

  7. #7
    Registered User
    Join Date
    Apr 2005
    Posts
    27
    i dont think so...how do i? like where do i download it
    compiler:dev-C++
    asr

  8. #8
    Registered User
    Join Date
    Apr 2005
    Posts
    27
    hello? r u there?
    ...what site is it on?
    compiler:dev-C++
    asr

  9. #9
    C++ Enthusiast jmd15's Avatar
    Join Date
    Mar 2005
    Location
    MI
    Posts
    532
    Open Dev, then go to Tools>>Check for Updates/Packages. Then when it brings up the big list choose Win32 API.
    Trinity: "Neo... nobody has ever done this before."
    Neo: "That's why it's going to work."
    c9915ec6c1f3b876ddf38514adbb94f0

  10. #10
    Moderately Rabid Decrypt's Avatar
    Join Date
    Feb 2005
    Location
    Milwaukee, WI, USA
    Posts
    300
    Do you have a main() function? A couple of times while writing header files, I've compiled just the header and it gave me a very similar error.
    There is a difference between tedious and difficult.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling problem
    By Miles Prower in forum C++ Programming
    Replies: 9
    Last Post: 02-20-2009, 05:53 PM
  2. Problem with compiling code with option -O2
    By koushikyou in forum C Programming
    Replies: 16
    Last Post: 01-07-2009, 06:03 AM
  3. gcc compiling and linking problem
    By maven in forum C Programming
    Replies: 6
    Last Post: 11-14-2008, 05:28 AM
  4. Basic compiling problem for a beginner
    By crazychile in forum C Programming
    Replies: 4
    Last Post: 09-21-2008, 02:27 AM
  5. Newbie Compiling Problem
    By Deronius in forum C++ Programming
    Replies: 3
    Last Post: 06-15-2008, 11:23 AM