Thread: Problem with Borland 5.5

  1. #1
    Registered User
    Join Date
    May 2003
    Posts
    5

    Problem with Borland 5.5

    Hello everyone! I ran into a problem using Borland 5.5 to compile. I get this error message when attempting to compile a simple test program.

    C:\Borland\BCC55\Bin>bcc32 C:\#PROJE~1\#C\test.cpp
    Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
    C:\#PROJE~1\#C\test.cpp:
    Error E2040 C:\#PROJE~1\#C\test.cpp 1: Declaration terminated incorrectly
    *** 1 errors in Compile ***

    C:\Borland\BCC55\Bin>bcc32 test.cpp
    Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
    test.cpp:
    Error E2040 test.cpp 1: Declaration terminated incorrectly
    *** 1 errors in Compile ***

    I know the compiler probably simply isn't set up correctly. I have only installed from the exe. I have tried the process listed at cprogramming.com to create some .cfg files but i get the same error with or without using them. If anyone can help I would greatly appreciate it. Thanks in advance and happy programming!

  2. #2
    Registered User
    Join Date
    May 2003
    Posts
    5

    Oops/

    Ok it seems I posted that a bit premature, I fixed my problem. However, now, is there a way to change the directory to where the compiled files go? Bin will get pretty messy =)

  3. #3
    Registered User
    Join Date
    Feb 2003
    Posts
    596
    Why are you compiling in the bin directory?

    cd to
    C:\#PROJE~1\#C
    (where presumably your source code is located)
    and compile from there.

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