Borland C++Builder 6

This is a discussion on Borland C++Builder 6 within the C++ Programming forums, part of the General Programming Boards category; I have a problem with Borland C++Builder 6. The problem comes when i try to run a program with it: ...

  1. #1
    Alkabalka
    Guest

    Borland C++Builder 6

    I have a problem with Borland C++Builder 6.

    The problem comes when i try to run a program with it:

    [Linker Error] Unresolved external 'WinMain' referenced from C:\PROGRAMFILER\BORLAND\CBUILDER6\LIB\C0W32.OBJ

    What does that mean?
    I have tried the same code in another compiler, and that worked just fine.

  2. #2
    Cat
    Cat is offline
    Registered User
    Join Date
    May 2003
    Posts
    1,571
    You're trying to build it as a windows application, and the entry point for a windows application is WinMain.

    If you're doing a console application, that starts at main(), you need to tell it that.

  3. #3
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    Yeah... make sure you select Win32 Console App for your project type.
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

  4. #4
    Alkabalka
    Guest
    I've started my program with main()

    How can i make the program as a console program?

  5. #5
    Banned nickname_changed's Avatar
    Join Date
    Feb 2003
    Location
    Australia
    Posts
    986
    From memory, you go
    File->New... and select Console Wizard, and then check 'Console application'

    Thats off the top of my head though, I don't have it on this computer.

  6. #6
    Alkabalka
    Guest
    Thanks, I found it.

    But now i've got two errors more, these are:

    [C++ Error] Test.cpp(18): E2476 Cannot overload 'main'

    and...

    [C++ Error] Test.cpp(18): E2178 VIRDEF name conflict for 'main()'

    What can the problem be this time?

  7. #7
    Banned nickname_changed's Avatar
    Join Date
    Feb 2003
    Location
    Australia
    Posts
    986
    If its not too big post your code, my guess is you have 2 definitions for main in there somewhere.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. THE END - Borland C++ Builder, Delphi, J Builder?
    By Davros in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 02-28-2006, 11:23 PM
  2. Converting from Borland Builder -> MSVC++ guide?
    By _Elixia_ in forum Windows Programming
    Replies: 4
    Last Post: 08-02-2003, 10:00 AM
  3. TAutoObject: Builder 1.0 vs. 6.0
    By pimming in forum C++ Programming
    Replies: 2
    Last Post: 06-11-2003, 11:47 PM
  4. Dynamically programme in C++ Builder..Help
    By Gugge in forum C++ Programming
    Replies: 2
    Last Post: 08-01-2002, 01:14 PM
  5. borland c++ builder 6 trial
    By Klinerr1 in forum C++ Programming
    Replies: 3
    Last Post: 06-13-2002, 12:59 AM

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