Thread: Coding and compiling

  1. #1
    Registered User
    Join Date
    Dec 2010
    Posts
    1

    Question Coding and compiling

    I don't know if it's the right forum to post this message, so if it's not please move it.

    I'v been using Code::Blocks for the programming, but now I'v been requested to use Borland (because of some compilation differences, as in *.eof() and some other functions). I know that I can use different compilers in Code::Blocks. I'v installed free Borland 5.5 compiler, but when I tried to compile programs with it throught Code::Blocks I get |Unable to open file 'C.OBJ'| error.
    Anyone knows how to solve this problem?

    I also saw some topics (FAQ: Please help to use Borland Compiler , I'm officially an idiot , Help with Borland C++ 5.5 ) about that at this forum, folowed all the steps (creatig *.cfg files), but it doesn't help

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    When you set up BC5.5, you set up a config file, which probably also set some environment variables as well.
    Typically, this means vars like INC and LIB (or INCLUDE, or other similar variations).

    One way is to start C::B from the command line where your compiler is set up (type "set" at the command prompt to see what vars are already set).

    Another way is to put those same environment variables into your system properties (see picture).
    These will be set the next time you log in, after which you should be able to just select C::B as normal.
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linking libraries when compiling with g++ in ubuntu
    By Veni_Vidi_Vici in forum C++ Programming
    Replies: 1
    Last Post: 08-02-2010, 10:01 PM
  2. Need help coding a bouncer
    By megareix in forum Networking/Device Communication
    Replies: 6
    Last Post: 01-05-2009, 07:33 PM
  3. File I/O Tutorial Not Compiling
    By oobootsy1 in forum C++ Programming
    Replies: 10
    Last Post: 03-08-2004, 12:24 PM
  4. Time libraries and funtions for Windows C Compiling
    By vmn_3k in forum C Programming
    Replies: 6
    Last Post: 08-14-2003, 01:24 PM
  5. Compiler Stops Compiling
    By tyler4588 in forum C++ Programming
    Replies: 8
    Last Post: 08-02-2003, 10:20 PM