[TRNSYS-users] Error when compiling my type in Microsoft Visual Studio 2015

Javier Vega via TRNSYS-users trnsys-users at lists.onebuilding.org
Fri Mar 17 08:37:29 PDT 2017


Hello TRNSYS users,

It's my first time doing my own type and compiling a program (although I
have matlab programming experience). I've wrote my type program following
the Programmers Guide instructions to do it, familiarizing myself with
different  TRNSYS functions.

After that, I followed the instructions to compile the program on Microsoft
Visual Studio 2015 and Intel Visual Fortran 17. I did the same as the
Programmers Guide, except for a few settings in the TRNDLL where the option
instructed by the guide was not shown as a possibility in Microsoft Visual
Studio. These are the Run-time libraries, where, for example, the guide
said that I should configure "Single-threaded DLL". I didn't have that
option so I configured "Multi-threaded DLL".

*The Programmer's Guide instructs to rebuild de TRNDLL, and so I did
succesfully. But after that, I followed the steps to add and compile my
Type. Then, I get the following errors.*


*[image: Imágenes integradas 1]*

* Errors:*

   - *"Syntax error, found INDENTIFIER 'IGAM' when expecting one of: => = .
   [ % ( :   "*
   - *"This name does not have a type, and it must have an explicit one.
   TIMESTEP"  (for example)*


I've noticed that every "This name..." error is associated with a local
variable of my program that is called by a TRNSYS function. These are:

-Timestep (from getSimulationTimestep())
-Time (from getSimualtiontime() )
-All the parameters (from getParameterValue(#))
-All the inputs (from getInputValue(#))

I would appreciate any help or info to solve this issue.

Thanks in advance. Kind regards,
Javier Vega Benavente
Mechanical Engineering Magister Student, Universidad de Concepcion


<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Libre
de virus. www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20170317/7d824fec/attachment-0003.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 229710 bytes
Desc: not available
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20170317/7d824fec/attachment-0003.png>


More information about the TRNSYS-users mailing list