Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: #include $DOORS_BASE/doors_misc.inc
Topic Summary: gives an error message :(
Created On: 7-Sep-2005 10:59
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 7-Sep-2005 10:59
User is offline View Users Profile Print this message


Ben Herfurth

Posts: 37
Joined: 9-Jun-2005

-E- DXL: badly formed token (#include)
-E- DXL: incorrect argument for ($)
-E- DXL: incorrect arguments for (.)
-E- DXL: incorrect arguments for (/)
-E- DXL: undeclared variable (inc)
-E- DXL: undeclared variable (doors_misc)
-E- DXL: undeclared variable (DOORSBASE)


i tried all possible variations. But as the dxl reference manual tells me, that:

#include "$DOORSBASE/doors_misc.inc"

should be right, and while executing the script, Doors tells me, he doesnt find the include file ...
can someone help me?
Report this to a Moderator Report this to a Moderator
 7-Sep-2005 13:27
User is offline View Users Profile Print this message


Robert Swan

Posts: 86
Joined: 14-Apr-2005

Try this #include "$DOORSBASE\\doors_misc.inc" From DXL manual:- The Windows-style file separator (\) must be duplicated so that DXL does not interpret it as a meta character in the string.
Report this to a Moderator Report this to a Moderator
 7-Sep-2005 13:30
User is offline View Users Profile Print this message


Ben Herfurth

Posts: 37
Joined: 9-Jun-2005

ah sorry, we run the script on Linux, forgot to say that
Report this to a Moderator Report this to a Moderator
 7-Sep-2005 15:01
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

I don't think you can use substitution variables within the #include statement.
The string needs to be a string literal.

Besides, the $DOORSHOME should be redundant, as the $DOORSHOME/dxl folder is the default search location for included files.

for example, the following will work:

#include <addins/myScript.dxl>
#include <standard/theirScript.dxl>

You can also use relative paths:

#include <../myUtils.inc>

#include <./actual/myUtils.inc>

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 8-Sep-2005 08:34
User is offline View Users Profile Print this message


Ben Herfurth

Posts: 37
Joined: 9-Jun-2005

hmmm, a pity. but ok then i need to use it like this
thank you.
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.