SRL Archive - OSR Help

Duplicate Identifier Error


halgboy_tbc

2012-04-18 18:53:57

I am trying to add some DTM paths to a script and when I amend the script and add :
{$i ObjectDTM/ObjDTMInclude.simba} I get the following error:

[Hint] C:\Simba\Includes\SRL/SRL/core/mapwalk.simba(1353:3): Variable 'BOX' never used at line 1352
[Error] C:\Simba\Includes\SRL\SRL\MISC\Paintsmart.simba(12:3): Duplicate identifier 'SMART_Canvas' at line 11
Compiling failed.

These are all that are included/defined (The OBJDTM only after i add it):
{$DEFINE SRL5}
{$DEFINE SMART}
{$i SRL/srl.simba}
{$i SRL/SRL/misc/reports.simba}
{$i SRL/SRL/misc/paintsmart.simba}
{$i ObjectDTM/ObjDTMInclude.simba}


Even when I don't have add {$i ObjectDTM/ObjDTMInclude.simba} I still get the error: [Hint] C:\Simba\Includes\SRL/SRL/core/mapwalk.simba(1353:3): Variable 'BOX' never used at line 1352
but the script still runs (without the DTMs ofc).

SRL/ObjDTM/SPS are updated through the drop down menu and I am using Simba release 984, why is the Duplicate Identifier Error happening?

Thanks.

Total

2012-04-18 19:12:14

There are 2 viariables named SMART_Canvas. If you aren't using {$i SRL/SRL/misc/paintsmart.simba} then take it out.

halgboy_tbc

2012-04-18 19:14:42

So simple. Thanks a lot, it's working now.

( {$i SRL/SRL/misc/paintsmart.simba} is also in the ObjDTMInclude)