CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2002
    Location
    Az
    Posts
    4

    Question Does any one know how to

    does anyone know how to
    I am familiar with g++ the unix/linux gnu compiler, But I am on a windows box right now and only have a command line borland compiler c++. I have an object file and a source file and need to create an executable. In order to this g++ I believe I would first run a preprocess on the .cpp file which would create 'standard code' I think the term is, then I would run a compiler on the 'standard code' this would create assembly code, next I could run an assembler on the assembly code this would create object code. So then finally I could run a linker on the new object code as well as the original object. This would create an executable.

    Using borland I found

    CPP32.EXE is the preprocessor
    and
    ILINK32.EXE is the linker

    but I don't see a compiler or assembler...
    How does Borland go about going from 'standard code' from the preprocessor to object code????

    Any help would be greatly appreciated

  2. #2
    Join Date
    May 2000
    Location
    Phoenix, AZ [USA]
    Posts
    1,347
    You need to read Borland's documentation. Usually, you just
    invoke the compiler on the source file and an object file is created.
    A lot of times, you have to specify a specific option so that you
    can name the output. Every compiler is different and I'm sure
    Borland documents what their compiler's behavior is.

    --Paul

  3. #3
    Join Date
    Oct 2002
    Location
    Tx, US
    Posts
    208
    On my machine its bcc32.exe.
    I think my version is 5.X
    Vinod

  4. #4
    Join Date
    Apr 1999
    Posts
    27,449

    Re: Does any one know how to

    Originally posted by no0ne
    does anyone know how to
    I am familiar with g++ the unix/linux gnu compiler, But I am on a windows box right now and only have a command line borland compiler c++. I have an object file and a source file and need to create an executable. In order to this g++ I believe I would first run a preprocess on the .cpp file which would create 'standard code' I think the term is, then I would run a compiler on the 'standard code' this would create assembly code, next I could run an assembler on the assembly code this would create object code. So then finally I could run a linker on the new object code as well as the original object. This would create an executable.

    Using borland I found

    CPP32.EXE is the preprocessor
    and
    ILINK32.EXE is the linker

    but I don't see a compiler or assembler...
    How does Borland go about going from 'standard code' from the preprocessor to object code????

    Any help would be greatly appreciated
    Your compiler comes with no documentation?

    Regards,

    Paul McKenzie

  5. #5
    Join Date
    Nov 2002
    Location
    Sofia, Bulgaria
    Posts
    661
    look for 'bccXX.exe' were XX is nothing or a number and LINK.EXE
    this must be enough

    bccXX "sources"
    link "obj files"
    It's only when you look at an ant through a magnifying glass on a sunny day that you realise how often they burst into flames

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured