[Emacs-ada-mode] $ADA_INCLUDE_PATH problems
Joe Schafer
joseph.schafer at usma.edu
Mon Jan 12 18:04:39 PST 2009
Hey all,
I'm trying to compile a single file. I have a couple of packages in a
separate folder that I put in $ADA_INCLUDE_PATH. The Gnat users guide
says it automatically searches these directories. The problem is that I
get different results compiling in bash and compiling from within emacs
ada mode. I have the same problem when starting with "emacs -Q" so it's
not any of my customizations.
$ echo $ADA_INCLUDE_PATH
/usr/local/lib/ada:.
--compiling from bash
$ gnatmake hw2
gcc-4.3 -c hw2.adb
gcc-4.3 -c -I./ -I- /usr/local/lib/ada/testing.adb
gnatbind -x hw2.ali
gnatlink hw2.ali
--compiling from ada-mode
gnatmake -o hw2 hw2 -g -cargs -gnatq -gnatQ -bargs -largs
gcc-4.3 -c -g -gnatq -gnatQ hw2.adb
hw2.adb:5:40: file "testing.ads" not found
I tried adding $ADA_INCLUDE_PATH to ada-search-directories, but that
didn't seem to have any effect.
Thanks for the help.
Joe
More information about the Emacs-ada-mode
mailing list