Thread: using bcc32

  1. #1
    Registered User
    Join Date
    Feb 2002

    using bcc32

    Hi there,

    I am using the bcc32 compiler provided as a free download by borland. I would like to know how to use it to build and compile apps containing vcl components. I have tried to re-compile an old windows app built using the bcb builder IDE but cannot link together all the .obj files since I keep getting the error:
    "linker error: unable to resolve call to _main in c0x32.obj"

    any advice on this appreciated,



  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    > "linker error: unable to resolve call to _main in c0x32.obj"
    It thinks you're compiling a console application, not a windows application.

    bcc32 /?

    to see what option(s) you need to flag a windows build.

    I've no idea whether the free download supports VCL or not.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Oct 2001
    Use -W to compile a windows app.

    bcc32 -W

  4. #4
    Registered User
    Join Date
    Feb 2002
    Dear All,

    I tried using the -W parameter as suggested but still I cannot link the .obj files together. This is the new error message:

    "linker error: unable to resolve call to winmain in c0x32.obj"

    Any thoughts,



  5. #5
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    UNICODE WinMain() perhaps?

    Do you even define a main() or WinMain() in your own source?

    Kinda fishy that the linker is saying "winmain" instead of "WinMain".


  6. #6
    The Defective GRAPE Lurker's Avatar
    Join Date
    Feb 2003
    I use bcc32 -tW winapp.cpp and have no problems.
    Do not make direct eye contact with me.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. small executable with bcc32
    By mpx in forum C++ Programming
    Replies: 3
    Last Post: 05-05-2005, 11:15 AM
  2. BCC32 Memory Issue
    By sononix in forum C Programming
    Replies: 5
    Last Post: 08-02-2004, 08:21 AM
  3. Borland bcc32 include file problem
    By damonbrinkley in forum A Brief History of
    Replies: 1
    Last Post: 06-11-2003, 01:48 PM
  4. bcc32 compiling error (really strange!!)
    By jester in forum C++ Programming
    Replies: 14
    Last Post: 01-26-2002, 03:00 PM
  5. Linking error using ODBC with C and BCC32
    By D@nnus in forum C++ Programming
    Replies: 0
    Last Post: 11-17-2001, 04:11 AM