Page 1 of 1

C code compiles but doesn't run

Posted: Thu Dec 04, 2008 5:29 pm
by joely86
I have recently installed the borland compiler using textpad. I have followed all of the how to's to the letter.

To check i tried printing out "hello world", this program compiles as it should, but when i go to run it there is no output.
also if i try to write to a file this doesnt work.

Is there any reason it would not print out?? help please!!!

Thanks in advance!

Posted: Fri Dec 05, 2008 8:40 am
by nvj1662
I have the following set to use the Borland compiler to complie a .cpp file from Textpad and jump to any line in the code that the compiler reports as an error:
Command: C:\Program Files\CodeGear\RAD Studio\5.0\bin\bcc32.exe
Parameters: $File
Initial Folder: $FileDir

Capture Output is ticked

Regular expression to match output: ^(Error|Warning) [A-Z][0-9]+ (.+) ([0-9]+):
Registers: File: 2, Line: 3, Columne: is left blank.

If you can run the same command from a DOS box that you run in Textpad, I believe that you should be OK. Make sure that your PATH environment variable contains all of the directories that Borland requires for headers & libraries.

HTH.
[/img]