Thread: big trouble in c++!!!

  1. #1
    Registered User newbie_grg's Avatar
    Join Date
    Jul 2002

    Unhappy big trouble in c++!!!

    hi ,
    well i just needed some help. i get this error message when i try to compile using borland version 5.02.
    " unresolved external '_main' referenced from c:\bc5\lib\c0x32.obj" please help me. thanx to ya..
    "If knowledge can create problems, it is not through ignorance that we can solve them. "
    -Isaac Asimov(1920-1992)

  2. #2
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    I am guessing you are trying to compile and link a file that doesn't have a main defined. Are you working with multiple files?
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

  3. #3
    Registered User
    Join Date
    Jul 2002
    sometimes people get this when they try to do windows programs without setting up a windows project. WinMain vs main is usually the issue. if you set up your project as a DOS/console app you need main(), if you set it up as a Windows App, you need WinMain. could be your problem. dunno

  4. #4
    Registered User
    Join Date
    Aug 2001
    The same error had me stumped yesterday and the problem then
    was that the function prototype didnt match the function header.

    I had.

    void BubbleSort(int array, int arraySize);


    void Bubblesort(int array, int arraySize)

    Hope this helps.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. system() too big?
    By fanoliv in forum C Programming
    Replies: 6
    Last Post: 06-21-2006, 01:26 PM
  2. Constant too big error
    By John_ in forum C++ Programming
    Replies: 5
    Last Post: 01-26-2006, 01:45 AM
  3. creating big projects
    By devil@work in forum C++ Programming
    Replies: 4
    Last Post: 04-04-2003, 04:17 PM
  4. big trouble in little program
    By jonesy in forum C Programming
    Replies: 1
    Last Post: 10-04-2001, 02:04 PM
  5. Big O Notation
    By Drew in forum C++ Programming
    Replies: 1
    Last Post: 09-30-2001, 01:22 AM