Page 1 of 1

TextPad and C

Posted: Fri Feb 01, 2002 1:49 pm
by Silverdream
Hi,
I have installed textpad 4.5 and borland CPP compiler in my computer. I followed the instructions in textpad help to configure borland compiler and textpad. But when i compile a program, i get errors

Error E2209 C:\Workspace\Floppy\New_X\Indexer.c 1: Unable to open include file 'stdio.h'
Error E2451 C:\Workspace\Floppy\New_X\Indexer.c 6: Undefined symbol 'FILE' in function main
Error E2451 C:\Workspace\Floppy\New_X\Indexer.c 6: Undefined symbol 'fs' in function main
Error E2451 C:\Workspace\Floppy\New_X\Indexer.c 6: Undefined symbol 'fp' in function main

and so on. There are so many other errors. What am i doing wrong? Please help me as i need to get it working quickly.

Thanx in advance.

Re: TextPad and C

Posted: Sat Feb 02, 2002 10:32 am
by Ed Orchard
Your errors are all a result of the C compiler being unable to find the include files, in particular stdio.h. The path for this file must be made known to the compiler. I don't know this particular compiler/IDE but there will be a setup screen - probably "environment" which will enable you to enter the required path, possibly separated by ;
If you are calling the compiler with a command line from within TP one of the command line options will enable you to specify an include path - possibly -i

I hope this helps

Re: TextPad and C

Posted: Tue Feb 12, 2002 2:44 am
by Silverdream
Hi,
I have managed to get Textpad to compile any program. But i am unable to execute the program. I get an error as below,

'.exe' is not recognized as an internal or external command, operable program or batch file.
Press any key to continue...

Well this is the problem. Some one pls help.