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: confusing err-message after exec
Topic Summary: controversial err-message: one time declared constants are already declared??
Created On: 28-Jul-2006 12:31
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.
 28-Jul-2006 12:31
User is offline View Users Profile Print this message


Thomas Langholz

Posts: 40
Joined: 20-Oct-2005

hi,

i declared several constants in a script which is included by another.
when i execute it, i get the err-message

-E- DXL: <src/Format_WEXP.dxl:12> (cIndexReleaseBoard) already declared in this scope

Included from:

<Line:12>

-E- DXL: <src/Format_WEXP.dxl:13> (cIndexCRTabeles) already declared in this scope

Included from:

<Line:12>

-E- DXL: <src/Format_WEXP.dxl:14> (widthTableRB) already declared in this scope

Included from:

<Line:12>

-E- DXL: <src/Format_WEXP.dxl:15> (widthTableCR) already declared in this scope

Included from:

<Line:12>

-E- DXL: <src/Format_WEXP.dxl:16> (pointsPerCM) already declared in this scope

Included from:

<Line:12>

-I- DXL: all done with 5 errors and 0 warnings

i dont understand why this happens
thx for your support

thomas

Report this to a Moderator Report this to a Moderator
 28-Jul-2006 12:44
User is offline View Users Profile Print this message


Reik Schroeder

Posts: 361
Joined: 28-Jul-2003

Hi Thomas,

could it be possible, that you include the file twice?
Doors DXL has no preprocessor statements like #ifndef !
So you have to manage your include dependencies yourself.

Another possibilty could be, that these variables are already declared globaly by a startup script?!

BTW: The const ist ignored in DXL, so it is only a visual effect to define constants - in fact they are all variables

I hope this helps you a little bit,
greetings
Reik

-------------------------
Evosoft GmbH
for Siemens Industry Sector


Berlin, Germany

Edited: 28-Jul-2006 at 12:46 by Reik Schroeder
Report this to a Moderator Report this to a Moderator
 28-Jul-2006 12:50
User is offline View Users Profile Print this message


Thomas Langholz

Posts: 40
Joined: 20-Oct-2005

Hi Reik,

eigentlich könnten wir auch auf Deutsch schreiben, aber wir sind her ja in einem int. Forum, also weiter englisch

yeah, thats it, i included it twice
well, does anybody know wheather dxl-skrips were compiled or just interpreted?

greetings

thomas

Report this to a Moderator Report this to a Moderator
 28-Jul-2006 14:07
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Interpreted.

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 0 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 0 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.