Thread: Linking Error

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    73

    Linking Error

    Hi! I am just getting back into Windows programming, and my code compiles fine, but I am having linker trouble. The code I used to create my basic Window was taken EXACTLY from this site: http://winprog.org/tutorial/

    The code is supposed to make a basic window (lesson 2), and it compiles perfectly, but I am having a bit of trouble with the linking process. I am compiling with the free Borland Command Line Tools, and I get the following LINKER error:

    Error: Unresolved external 'WinMain' referenced from C:\BORLAND\BCC32\LIB\C0W32.OBJ

    I would appreciate an suggestions you could possibly make about this. I am rather frustrated, because I have no idea whatsoever as to how to fix a linker error.

    Thanks! ^_^

  2. #2
    Registered User Dante Shamest's Avatar
    Join Date
    Apr 2003
    Posts
    970
    Not very familiar with Borland's tools, but did you try specifying -tW?

  3. #3
    Registered User
    Join Date
    Feb 2002
    Posts
    73
    Yes, I compiled it correctly. That is one of the main reasons I am so confused. The code works just fine, and I passed the command line arguments to the compiler correctly, it just keeps giving me that linker error,

    Thanks for your reply! ^_^

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Beginner Needs help in Dev-C++
    By Korrupt Lawz in forum C++ Programming
    Replies: 20
    Last Post: 09-28-2010, 01:17 AM
  2. Post...
    By maxorator in forum C++ Programming
    Replies: 12
    Last Post: 10-11-2005, 08:39 AM
  3. pointer to array of objects of struct
    By undisputed007 in forum C++ Programming
    Replies: 12
    Last Post: 03-02-2004, 04:49 AM
  4. Stupid compiler errors
    By ChrisEacrett in forum C++ Programming
    Replies: 9
    Last Post: 11-30-2003, 05:44 PM
  5. Couple C questions :)
    By Divx in forum C Programming
    Replies: 5
    Last Post: 01-28-2003, 01:10 AM