user732362
user732362

Reputation: 405

Ada hello world example

I have written a simple hello world program in Ada and when I compile it using gnatmake I get an executable file called "hello". However, when I try to run the program by typing "hello" I get command not found error. I am using Linux VM and gcc compiler. What could be the issue? Thanks!

Upvotes: 2

Views: 815

Answers (1)

paxdiablo
paxdiablo

Reputation: 881463

It's probably a path issue. If you don't have your current directory in the path, try to run it with:

./hello

If the executable is in a different directory (that still isn't in your path), use the fully qualified executable name,, something like (you'll need to substitute your actual path):

/full/path/to/hello

Upvotes: 3

Related Questions