![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: forward reference not resolved Topic Summary: Created On: 5-Oct-2005 09:30 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hi!
I'am writting on a DXL script where I need forward declarations.
in the file protocolOperations.dxl I've some of these declerations:
Code:
void polyMorph(string&, Item, int);
When I start the script in an open session of DOORS it works with out errors. When I start the script in the batched mode of DOORS (because this script is a socket server) I get the following error message:
-R-E- DXL:
|
|
![]() |
|
![]() |
|
I have a similar problem. I try to include an .inc file when DOORS is started (through the startup.dxl script). The .inc file contains forward references.. I get the same error.
/Mattias |
|
![]() |
|
![]() |
|
Thomas,
We've had the same problem here. The solution is to wrap the entire DXL script that's going to be run in batch mode in braces. Apparently the DXL interpreter does this automatically when the script is run through the client interface. For whatever reason this seems to resolve the forward reference errors. For example: // batchcode.dxl { // put entire file in here... } There is another thread related to this somewhere, but it provides the same solution I think. Kevin |
|
![]() |
|
![]() |
|
I realize people that posted in this thread seem to be experiencing this issue only in batch mode. I am experiencing this in a regular dxl script execution mode. Any ideas on how I might debug this since the error seems to be stemming from a script that telelogic provided? Any input would be much appreciated. Thank you.
Regards, Pranav Chandrasekhar |
|
![]() |
|
![]() |
|
What is the exact error.
If you show me the function name I might be able to help. ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
Most usual error committed in forward declaration is using the wrong function signature. Following shows example of correct usage of signatrue for forward declaration.
//Proper forward declaration of a function /* Notice that dxl lets function have a shortcut of haveing variable type declared once but the signature does not allow this shortcut */ string MyFunction(string,string,int,int)//correct signature of forward declaration string MyFunction(string s, s2,int i,j) { return i " " s " " j" " s2 } print MyFunction("s", "s2", 1,2) |
|
![]() |
|
![]() |
|
The specific error I get is as follows:
-R-E- DXL: <utils/doctools/itfui2.inc:119> forward reference not resolved Thank you for responding to my post. Regards, Pranav |
|
![]() |
|
![]() |
|
How are you using this include file?
Looking at the file I can see that there is a call to userExportCode(), but this function is not defined. You are expectd to supply that. See comments in the file. You can see an example of the forward declaration and definition of the function in DOORSHOME/lib/dxl/standard/export/office/word.dxl. ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
here's a quick clarification note for this post:
when you put your braces around the "entire code" this means EVERYTHING from the point after the first comment that starts your script (the standard is to have the first line of your script a single line comment (starts with "//") and then the next few lines are a block comment (contained in "/*" and "*/") with more details about what the script does, etc.). For a while I thought the block comment was innocuous, but trial and error taught me that even it needed to be contained within the starting brace. So to be more precise, the attached code is what your file should look like Jason |
|
![]() |
Telelogic DOORS
» General Discussion
»
forward reference not resolved
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.