TextPad and C

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Silverdream

TextPad and C

Post 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.
Ed Orchard

Re: TextPad and C

Post 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
Silverdream

Re: TextPad and C

Post 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.
Post Reply