exit codes / borland C++ compiler

General questions about using TextPad

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

Post Reply
David Spain

exit codes / borland C++ compiler

Post by David Spain »

I am trying to use Borland's free C++ compiler with Textpad. I am able to compile and run my C programs using Textpad.

When running a simple HelloWorld program from within Textpad, in addition to the desired "Hello World!", I am receiving the following message -- "Tool completed with exit code 13".

If I run the program from a DOS command prompt, I do not recieve any errors.

1) Anyone know what I might be missing?
2) Does it matter that this is a C program rather than C++?
3) Is there a list of exit code definitions anywhere? (ie, what does 13 mean?)

I am new to this, I appreciate any help I can get! Thank you!

Here is the HelloWorld program (saved in a file named Hello.c):

#include <stdio.h>

main()
{
printf("hello, world\n");
}


--thanks, David
Andreas

Re: exit codes / borland C++ compiler

Post by Andreas »

you are missing nothing.

in the command prompt, the result code is not displayed.

Textpad evaluates the result code and displays it.

use a correct main function

int main(int argc, char** argv)
{
printf("hello world\n");
return 0;
}

and textpad will display something like
Tool completed successfully
Dan Eliot

Re: exit codes / borland C++ compiler

Post by Dan Eliot »

I ran your code without problem. When I compile, I get:

"Tool Completed Successfully"

When I run it, I get:

hello, world
Press any key to continue . . .

A couple of things.

Do you have your run parameters correct based on this page?
http://www.textpad.com/support/tips/borlandtip.html

Are you trying to RUN the command results window. That is, make sure your .C file is visible in Textpad when you are trying to run your program!

Good luck,
Dan
Post Reply