Book a Demo

Author Topic: Include path  (Read 3072 times)

Elmi

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Include path
« on: October 24, 2006, 12:38:52 am »
Hello,

i have a normal folder structure in the EA. When I generate the code, this structure would not be assumed in the include pathes. If I insert the files in my Project (keeping the folder structure) I am not able to build it, because the compiler can not find any include files.
How can I generate the relative pathes of the includes?

Elmi

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Include path
« Reply #1 on: October 24, 2006, 03:14:56 pm »
Hi Elmi,

It's currently not possible to generate your includes to use relative file paths from the current class, but there is an option that you have for the same effect.  When the filepaths in EA use a local path (See http://www.sparxsystems.com/EAUserGuide/index.html?localpaths.htm) EA will generate the include path from that point.  Therefore if the local path is also in your include path when compiling it should be able to find all files referenced.

Hope that helps.

Elmi

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Include path
« Reply #2 on: October 24, 2006, 11:41:17 pm »
Yeah, it works!

Thank you!