1. Doing away with EUDIR
- Posted by evanmars Feb 05, 2013
- 1459 views
After reading recent posts, I see that it is possible (maybe desirable?) to do away with EUDIR.
I kind of "come and go" when it comes to programming and keeping up with current events. So, obviously, I have missed the discussion on how to not have to have EUDIR set.
Would someone please point me in the direction of that discussion?
2. Re: Doing away with EUDIR
- Posted by ghaberek (admin) Feb 05, 2013
- 1488 views
You can get started here: Set Up the Euphoria Configuration File
-Greg
3. Re: Doing away with EUDIR
- Posted by evanmars Feb 05, 2013
- 1449 views
Thanks. I did see this before, but wasn't sure it was what I was looking for. Still not sure how to use it. No problem, it'll give me something to work on when I'm bored.
Thanks for the help.
4. Re: Doing away with EUDIR
- Posted by ArthurCrump Feb 05, 2013
- 1422 views
You can get started here: Set Up the Euphoria Configuration File
-Greg
Looking at that documentation for the configuration file I see that "-c" will execute another configuration file, which subsequent commands may override. If the same configuration file is invoked again, it will not be executed again, which contradicts the statement that later commands override earlier ones. Presumably this behaviour cannot be changed for compatibility reasons. However, it should be emphasized in the documentation.
Arthur
5. Re: Doing away with EUDIR
- Posted by gbonvehi Feb 05, 2013
- 1413 views
I think the doc is missing some eu.cfg example (at least I couldn't find one handy). Here's one from a thread here: http://openeuphoria.org/forum/119794.wc
[all] -d E32 -eudir /Users/bruceaxtens/Downloads/euphoria-79c875319629 -i /Users/bruceaxtens/Downloads/euphoria-79c875319629/include [translate] -gcc -con -com /Users/bruceaxtens/Downloads/euphoria-79c875319629 -lib-pic /Users/bruceaxtens/Downloads/euphoria-79c875319629/source/build/euso.a -lib /Users/bruceaxtens/Downloads/euphoria-79c875319629/source/build/eu.a [bind] -eub /Users/bruceaxtens/Downloads/euphoria-79c875319629/source/build/eub
You've -eudir, -i switch examples there. The -i switch can be relative to where eu.cfg is located which really helps.
Cheers,
Guillermo
6. Re: Doing away with EUDIR
- Posted by _tom (admin) Mar 08, 2013
- 1268 views
You can get started here: Set Up the Euphoria Configuration File
-Greg
Looking at that documentation for the configuration file I see that "-c" will execute another configuration file, which subsequent commands may override. If the same configuration file is invoked again, it will not be executed again, which contradicts the statement that later commands override earlier ones. Presumably this behaviour cannot be changed for compatibility reasons. However, it should be emphasized in the documentation.
Arthur
I have a second draft proposal for changes to the documentation put up on the Wiki. Hopefully it untangles how eu.cfg files work.
It turns out that saying "subsequent commands may override previous commands" is an over simplification. Some switches will override, others will shadow, and it is possible for switches to accumulate data.
If a configuration file could be read more than once, then it would be possible to have an endless loop. I now mention this possibility in the documentation. Notice that include files are read only once.