| View previous topic :: View next topic |
| Author |
Message |
attreus Valued Newbie

Joined: 30 Jul 2002 Posts: 46 Location: Berlin/Germany
|
Posted: Thu Jun 05, 2008 10:13 pm Post subject: only 29 includes possible in vds5 ?? |
|
|
i always get an error "circular reference in include commands" if i try to compile a script with 30 or more includes this error appears. all scrippts are working well with each other if i put them together in one large script.
i'd like to build a multiunit-maker to which i compile functions and commands according to demand.
greetings
edit:
oh, i see it's the miscellaneous-forum. it should be moved to general questions i think, but i don't know how to do. |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Fri Jun 06, 2008 7:47 pm Post subject: |
|
|
Wow, 30 includes! I've never gone beyond 10 includes myself. Sorry, I don't have an answer for you, just commenting on my amazement at 30 includes.  _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
attreus Valued Newbie

Joined: 30 Jul 2002 Posts: 46 Location: Berlin/Germany
|
Posted: Sat Jun 07, 2008 3:09 pm Post subject: |
|
|
| for every additional function or command i wanna have a separate script. when programming i just include multiunit.dsu which should check the script and only compile functions and commands that are used in the script. all others are #rem out. thats the plan. i hope i explained it understandable. |
|
| Back to top |
|
 |
DaveR Valued Contributor


Joined: 03 Sep 2005 Posts: 413 Location: Australia
|
Posted: Sun Jun 08, 2008 2:27 pm Post subject: |
|
|
There is character limit for the #define function and #define command lines. If you have lots of defined functions, or commands, you may need to shorten the length of each command and function.
Example: Instead of #define command,FindFirstFile use #define command,FindFirst or #define command,FFF _________________ cheers
Dave |
|
| Back to top |
|
 |
attreus Valued Newbie

Joined: 30 Jul 2002 Posts: 46 Location: Berlin/Germany
|
Posted: Mon Jun 09, 2008 3:37 pm Post subject: |
|
|
oh, that's a bad message, 'cause sooner or later the limit will be reached. i'll have to think of another way for my multiunitmaker. nevertheless thanks dave.
ps: does this limit exist in vds6 too? |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Mon Jun 09, 2008 3:52 pm Post subject: |
|
|
What I found is that you have to split up the #DEFINE COMMAND/FUNCTION on multiple lines. I found this when trying to define all the commands and functions that my GadgetX.dll has. _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
DaveR Valued Contributor


Joined: 03 Sep 2005 Posts: 413 Location: Australia
|
Posted: Wed Jun 11, 2008 2:32 pm Post subject: |
|
|
| dragonsphere wrote: | | What I found is that you have to split up the #DEFINE COMMAND/FUNCTION on multiple lines. |
Does that really work for you? I'm sure when I tried that it did not help.
I seem to remember that it doesn't matter whether they are all on one line or split into multiple lines because the compiler effectively puts them all on the one line anyway. _________________ cheers
Dave |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Thu Jun 12, 2008 6:39 pm Post subject: |
|
|
Dave,
I will try it again since it was over a year ago when I ran into that. My help file and demos was going to list out all the functions and commands for my DLL on 2 lines but then I ran into the issue and decided against #define all commands/functions in every demo. However I do believe I got it to work by putting them on different lines. Now this was with VDS 5.02 so Jules may have tightened up the code since then or maybe I was just lucky that day  _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Thu Jun 12, 2008 6:49 pm Post subject: |
|
|
Ok I just tried it in VDS 6 and there is a limit  _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
|