This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Ada compiler built but not working
- From: Robert Love <rlove at neosoft dot com>
- To: zhenggen <zhenggen at public1 dot ptt dot js dot cn>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 2 Jul 2002 13:26:04 -0500
- Subject: Re: Ada compiler built but not working
On Tuesday, July 2, 2002, at 09:01 AM, zhenggen wrote:
Robert Love wrote:
gnatmake hello.adb
gcc -c hello.adb
gcc: hello.adb: Ada compiler not installed on this system
gnatmake: "hello.ali" WARNING: ALI or object file not found after
compile
gnatmake: "hello.adb" compilation error.
You should check which gcc you have invoked by shell command "which" :
$ which gcc
From the message one can figure out that the old gcc which is located
in /usr/bin is called.
The work around is put "/usr/local/bin" at the begin of your PATH
variable.
Of course you were correct. My history list shows I had even performed
a which on gnatmake but not on gcc. Thank you for clearing up my
confusion.
Bob Love mail: rlove@neosoft.com
jabber: rlove@jabber.org