0

I was given an Ada source file from a co-worker to include in an existing project. This source file wants to include the win32.ads which I see in c:\gnatpro\include\win32ada . But my installation of GnatPro doesn't look into this folder area, only the version-specific c:\gnatpro\6.2.2... I'm not sure what I need to change to force the build tools to see c:\gnatpro\include as well (if it was C/C++ I'd add -i).

Any suggestions on how to modify my build command to include c:\gnatpro\include ?

erict
  • 1,394
  • 2
  • 14
  • 28
  • 2
    If you are using GNATpro you should be able to get pro support from Adacore, and pro support is very good. That said ... what build command? You mention GPS, I’d expect you to be using a project file. But if you’re using `gnatmake` or `gprbuild` , then you can use `-Idir` just like in C. – Simon Wright Feb 20 '15 at 08:01
  • 3
    And I’m pretty sure that the C equivalent is `-I`, not `-i`. – Simon Wright Feb 20 '15 at 08:23
  • `-Idir` did not work (gprbuild: illegal option on the command line). – erict Feb 23 '15 at 16:59
  • 1
    No more it does, sorry. You might be able to use `-cargs -Idir` at the end of the command line. – Simon Wright Feb 24 '15 at 20:46

1 Answers1

2

Add the environment variable ADA_INCLUDE_PATH=dir to include the folder into the build process.

erict
  • 1,394
  • 2
  • 14
  • 28