using bcc32

This is a discussion on using bcc32 within the C++ Programming forums, part of the General Programming Boards category; Hi there, I am using the bcc32 compiler provided as a free download by borland. I would like to know ...

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

    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,

    Thanks,

    bigSteve
    bigSteve

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

    Try
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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

    bcc32 -W

  4. #4
    Registered User
    Join Date
    Feb 2002
    Posts
    29
    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,


    regards,

    bigSteve
    bigSteve

  5. #5
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,607
    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".

    gg

  6. #6
    The Defective GRAPE Lurker's Avatar
    Join Date
    Feb 2003
    Posts
    949
    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 Cprogramming.com
    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

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