+2 votes
303 views
in Modeling by Fabian de Gasparo (28 points)

My model consists of a dozen c functions. How do I efficiently debug errors like: 
 

'F_chain' undeclared (line: 4066)

Please, make the needed corrections and restart the compilation.

Compilation process interrupted.

I have found the error of course by going through all the functions. My question is where can I find the file with this line 4066 to know exactly where the error is?

2 Answers

+3 votes
by Jovan Zelic (156 points)
selected by Dusan Kostic
 
Best answer

Hi Fabian,

It's possible that you used F_chain as a variable in one of your functions but it wasn't present among the defined variables. You can try finding in which exact function this variable was used either manually, or by searching through the .tse file which you can open in text editor.

by Fabian de Gasparo (28 points)
+1
Hi,
Shaould have updated the question. I did not know that I could open the .tse file in an text editor. As you said that showed where the problem lied.
In that case there was no problem, I just had to restart the software. In general I often get error or things not working, but by simply restarting the application, the issues get fixed itself.

Thank you though :)
–2 votes
by Ioannis Poursanidis (71 points)
Since your model consists of dozens of C-functions, did you try to check the syntax of each of them by using the 'Check Syntax' button in each C-function? It could, probably, help.
...