Results 1 to 3 of 3

Thread: Duplicate Identifier Error

  1. #1
    Join Date
    Jan 2012
    Posts
    83
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default Duplicate Identifier Error

    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.

  2. #2
    Join Date
    Mar 2012
    Location
    Over there
    Posts
    840
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

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

  3. #3
    Join Date
    Jan 2012
    Posts
    83
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

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

    ( {$i SRL/SRL/misc/paintsmart.simba} is also in the ObjDTMInclude)
    Last edited by halgboy_tbc; 04-18-2012 at 11:17 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •