Textpad can´t find Include files

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
Torquemada
Posts: 2
Joined: Fri Dec 23, 2005 11:02 pm

Textpad can´t find Include files

Post by Torquemada »

Hey im new to this board.
Im having trouble getting Textpad to work with Borland c++ compiler. I have added the /bin and /include directories to the system path but the compiler can´t find the include files unless I place them in the same directory as my program.
User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Post by s_reynisson »

Perhaps this could set it straight? http://www.textpad.info/forum/viewtopic ... nd+include
Under "2. INSTALLING THE C COMPILER" - bcc32.cfg and includes, item 1. HTH
Then I open up and see
the person fumbling here is me
a different way to be
Torquemada
Posts: 2
Joined: Fri Dec 23, 2005 11:02 pm

Post by Torquemada »

I don´t understand this step:

1. Create a file called bcc32.cfg file which will set the compiler options for the Include and Lib paths (-I and -L switches to compiler) by adding these lines:

-I"c:\Borland\Bcc55\include"
-L"c:\Borland\Bcc55\lib"

Should I create a bcc32.cfg and add these lines inside the file?
juanfdezgcia
Posts: 2
Joined: Mon Feb 02, 2009 10:56 am
Location: At the moment: Saarbrücken, Germany

Post by juanfdezgcia »

Well!, actually you should create not just one but two files:
  • a file called bcc32.cfg which has to contain the following 2 lines:

    -I"c:\Borland\Bcc55\include"
    -L"c:\Borland\Bcc55\lib"
  • a file called ilink32.cfg which have to contain the line:

    -L"c:\Borland\Bcc55\lib"
Both files have to be created inside the directory where the compiler (bcc32.exe) is, by default this directory is C:\borland\bcc55\Bin\

If you don't created those files containing such lines you will have to include quite verbose options each time you invoke the compiler, i.e., instead of invoking the compiler like:

Code: Select all

bcc32.exe MyFile.cpp
you will have to write:

Code: Select all

bcc32.exe -I"c:\Borland\Bcc55\include" -L"c:\Borland\Bcc55\lib" MyFile.cpp
Which is an annoyance!

HTH

NB: you'd better have a look at the readme.txt file which is created when installing the C++BUILDER COMMAND LINE TOOLS, and which by default is contained inside the directory: C:\borland\bcc55\
    Post Reply