Thread: Borland Complier Problem

  1. #1
    Registered User
    Join Date
    May 2002
    Posts
    27

    Borland Complier Problem

    I got the free version. I tried to compile a win32 opengl program using:

    bcc32.exe -c c:\sw.cpp

    -c is compile but it has errors with the header and libraries anyone know how to compile this ?

  2. #2
    Unregistered
    Guest
    bcc32 -IC:\Borland\BCC55\Include -LC:\Borland\BCC55\Lib [yourfile]

  3. #3
    Registered User
    Join Date
    May 2002
    Posts
    27
    sorry to say but that didnt fix it

  4. #4
    Registered User
    Join Date
    Oct 2001
    Posts
    2,934
    You might try adding the -W (windows program) switch:

    bcc32 -W -IC:\Borland\BCC55\Include -LC:\Borland\BCC55\Lib [yourfile]

    However, you really need to follow the setup instructions, so that it can find everything. I think at the bottom of the page where you downloaded the compiler, there's a link with setup instructions. I believe there's also one in the borland\bcc55 directory, but it's not as good.

    Once it's setup properly, all you have to do is:

    bcc32 -W filename.cpp

    and it creates an .exe.

  5. #5

  6. #6
    Registered User Liam Battle's Avatar
    Join Date
    Jan 2002
    Posts
    114
    you prolly didnt config the linker ect...
    make two cfg files like this :

    create a file called bcc32.cfg in your borland/bin directory

    with this inside:

    -I"d:\Borland\include"
    -L"d:\Borland\lib"


    and i config files called ilink32 in your borland/bin directory

    with this inside:

    -L"d:\Borland\lib"
    LB0: * Life once school is done
    LB1: N <- WakeUp;
    LB2: N <- C++_Code;
    LB3: N >= Tired : N <- Sleep;
    LB4: JMP*-3;

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help understanding a problem
    By dnguyen1022 in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2009, 04:21 PM
  2. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 11:22 AM
  3. Someone having same problem with Code Block?
    By ofayto in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2007, 08:38 AM
  4. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 02:51 PM
  5. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 06:54 PM