1. Include problems
- Posted by Tommy Carlier <tommy.carlier at pandora.be> Dec 21, 2003
- 424 views
I have a problem with the include-statement. I'm creating a package of libraries, some documentation on how to use them, and some demos. I've put these in 3 different sub-folders of a common folder: main +- include (contains: smelptyp.e, smelpars.e, smeldoc.e, smelwrit.e) +- doc (contains: *.htm, *.css) +- demos (contains: test.ex, test2.ex, test3.ex, *.smel) In the 'main\include'-folder, I've put all the libraries. In the 'main\demos'-folder, I've put all the demo-applications. In a demo-application, I include one of the libraries: -- test.ex include "..\\include\\smelpars.e" In 'main\include\smelpars.e', I include a different library in the same folder ('main\include\smelptyp.e'), like this: -- smelpars.e include "smelptyp.e" When I try to run that demo, I get an error: smelpars.e has been found, but smelptyp.e not, because it's not in the same folder as the demo-application, it's not in one of the EUINC-folders, and it's not in 'c:\Euphoria\include'. My temporary solution is to put all the files (libraries and demos) in the same folder. Is there any other solution? Request for Euphoria 2.5/3.0: Every time a library is included, temporarily add the folder of the library to the search-path. ______________ tommy online: http://users.pandora.be/tommycarlier
2. Re: Include problems
- Posted by "Juergen Luethje" <j.lue at gmx.de> Dec 21, 2003
- 417 views
Tommy Carlier wrote: > I have a problem with the include-statement. > I'm creating a package of libraries, some documentation on how to use > them, and some demos. I've put these in 3 different sub-folders of a > common folder: > > main > +- include (contains: smelptyp.e, smelpars.e, smeldoc.e, smelwrit.e) > +- doc (contains: *.htm, *.css) > +- demos (contains: test.ex, test2.ex, test3.ex, *.smel) > > In the 'main\include'-folder, I've put all the libraries. In the > 'main\demos'-folder, I've put all the demo-applications. > > In a demo-application, I include one of the libraries: > > -- test.ex > include "..\\include\\smelpars.e" > > In 'main\include\smelpars.e', I include a different library in the same > folder ('main\include\smelptyp.e'), like this: > > -- smelpars.e > include "smelptyp.e" > > When I try to run that demo, I get an error: smelpars.e has been found, > but smelptyp.e not, because it's not in the same folder as the > demo-application, In the past, I made the same experience. Obviously, Euphoria interprets the file name "smelptyp.e" relative to the location of the file of the main program, not relative to the location of the file that is _directly_ including it. > it's not in one of the EUINC-folders, and it's not in > 'c:\Euphoria\include'. > > My temporary solution is to put all the files (libraries and demos) in > the same folder. Is there any other solution? > > Request for Euphoria 2.5/3.0: > Every time a library is included, temporarily add the folder of the > library to the search-path. ... or interpret names of included files like "smelptyp.e" (that don't contain an absolute path, like "c:\smelptyp.e") relative to the location of the file that is _directly_ including it. Please, please, please. This would make the include system much more flexible and comfortable. Regards, Juergen -- /"\ ASCII ribbon campain | |\ _,,,---,,_ \ / against HTML in | /,`.-'`' -. ;-;;,_ X e-mail and news, | |,4- ) )-,_..;\ ( `'-' / \ and unneeded MIME | '---''(_/--' `-'\_)
3. Re: Include problems
- Posted by kbochert at copper.net Dec 21, 2003
- 416 views
On 21 Dec 2003 at 9:56, Tommy Carlier wrote: > Request for Euphoria 2.5/3.0: > Every time a library is included, temporarily add the folder of the > library to the search-path. > Bach handles this with relative file names. include .\foo.b searches relative to the including file (as you would expect) Perhaps Eu already does this? Karl Bochert
4. Re: Include problems
- Posted by Robert Craig <rds at RapidEuphoria.com> Dec 21, 2003
- 409 views
Tommy Carlier wrote: > Request for Euphoria 2.5/3.0: > Every time a library is included, temporarily add the folder of the > library to the search-path. OK, I'll see what I can do. This, or something like it, might be one of the first new features added to the new, Euphoria-written front-end. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com
5. Re: Include problems
- Posted by "Juergen Luethje" <j.lue at gmx.de> Dec 23, 2003
- 406 views
Rob wrote: > Tommy Carlier wrote: >> Request for Euphoria 2.5/3.0: >> Every time a library is included, temporarily add the folder of the >> library to the search-path. > > OK, I'll see what I can do. > This, or something like it, > might be one of the first new features > added to the new, Euphoria-written front-end. Thanks! ,--. () \ / \ _/______\_ (__________) (/ @ @ \) (`._,()._,') ( `-'`-' ) \ / \,,,,,,/ I wish you and all Euphorians a Merry Christmas and a Happy New Year! Regards, Juergen
6. Re: Include problems
- Posted by "Hayden McKay" <hmck1 at dodo.com.au> Dec 24, 2003
- 403 views
Add this line to your config.sys to increase the command.com "path" variable size, so you can store more pathnames in your "PATH=" statement. -- config.sys <top lines>-- shell=c:\dos\command.com c:\dos /e:2048 /p files=40 fcbs=40,0 N.B. You can use any (larger) values you like. ----- Original Message ----- From: "Juergen Luethje" <j.lue at gmx.de> To: <EUforum at topica.com> Sent: Tuesday, December 23, 2003 4:54 PM Subject: Re: Include problems > > > Rob wrote: > > > Tommy Carlier wrote: > >> Request for Euphoria 2.5/3.0: > >> Every time a library is included, temporarily add the folder of the > >> library to the search-path. > > > > OK, I'll see what I can do. > > This, or something like it, > > might be one of the first new features > > added to the new, Euphoria-written front-end. > > Thanks! > > ,--. > () \ > / \ > _/______\_ > (__________) > (/ @ @ \) > (`._,()._,') > ( `-'`-' ) > \ / > \,,,,,,/ > > > I wish you and all Euphorians a Merry Christmas and a Happy New Year! > > Regards, > Juergen > > > > TOPICA - Start your own email discussion group. FREE! > > > -- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.554 / Virus Database: 346 - Release Date: 20/12/03 > --- --
7. Re: Include problems
- Posted by "Juergen Luethje" <j.lue at gmx.de> Jan 01, 2004
- 461 views
Hayden wrote: > ----- Original Message ----- > From: "Juergen Luethje" > >> Rob wrote: >> >>> Tommy Carlier wrote: >>>> Request for Euphoria 2.5/3.0: >>>> Every time a library is included, temporarily add the folder of the >>>> library to the search-path. >>> >>> OK, I'll see what I can do. >>> This, or something like it, >>> might be one of the first new features >>> added to the new, Euphoria-written front-end. >> >> Thanks! > > Add this line to your config.sys to increase the command.com "path" variable > size, so you can store more pathnames in your "PATH=" statement. > > -- config.sys <top lines>-- > shell=c:\dos\command.com c:\dos /e:2048 /p > files=40 > fcbs=40,0 > > N.B. You can use any (larger) values you like. I do not believe that this will help. The PATH environment variable is used by DOS/Windows to find executables. It is not used by Euphoria. Regards, Juergen -- /"\ ASCII ribbon campain | Money is the root of all evil. \ / against HTML in | Send 20 Dollars for more info. X e-mail and news, | / \ and unneeded MIME | http://home.arcor.de/luethje/prog/