Jump to content
Sign in to follow this  
JoelS

VS compilation error on Win7, VW2012

Recommended Posts

I have been developing a script on the Mac in VW2012 and wanted to test it on the PC side, so I installed a copy of VW2012 on Boot Camp with Win7, copied across the various resources and I see this error:

Line #1: book

|

{ Error: Expected = }

|

{ Error: Expected BEGIN }

|

{ Error: Expected a RUN statement at the end of the scirpt }

Seconds to Compile: 0.00

Previously in VW2011 any script I brought across to the PC worked the same in both environments but here there is a difference.

There is no "book" on line one of the script and it shows no compilation errors on the Mac side, so what is the compiler trying to get across?

Thanks, Joel.

Share this post


Link to post

Hi Joel,

???It could be referring to line 1 of any $Included file. Sometimes, the second or third error message will clue you in to which file is the offending one.

???The "{ Error: Expected = }" message usually occurs in CONST declarations. I know this is not much help, but without knowing more, I can't offer more.

???Lastly, do you have a blank line at the end of every included file? This prevents statements in adjacent files from running together inadvertently.

HTH,

Raymond

Share this post


Link to post

Hi Raymond,

All the include files have those blank lines and they are the same files that compile on the Mac side. Will check out CONST declarations specifically.

I'll do some more digging.

Thanks,

Joel.

Share this post


Link to post

Turned out to be a stupid thing. One common include was a Mac alias instead of the original file and so the file was effectively missing but VW was trying to use the contents as an include anyway.

All working now, thanks.

Joel.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×
×
  • Create New...