[TRNSYS-users] new component linking

keilholz, werner werner.keilholz at cstb.fr
Tue Feb 19 05:25:32 PST 2008


Hi Essam, 

 

This error means that the linker cannot link in the TRNSYS kernel functions to your new type for some reason. 

 

For example, you are missing TRNDll.lib under Settings/Linker/Input/Additional Dependencies , or your are using the wrong calling conventions (should be C, under 'Advanced'). 

 

Detailed settings are at http://sel.me.wisc.edu/trnsys/fortran/fortran.htm 

 

Did you create your compile project from the Studio ?  It's a good idea to make your first one by opening the new Proforma of your type in the Studio, then use File/Export as... FORTRAN. 

When you open the resulting FORTRAN project in one of the recommended compilers, it usually works right away, and you can use it as a template for your own projects. 

 

HTH,

 

Werner

 

________________________________

De : ESSAM [mailto:esamsh at aua.gr] 
Envoyé : lundi 18 février 2008 15:57
À : TRNSYS ALL USER
Objet : [TRNSYS-users] new component linking

 

Dear all,

I am relatively new with coupling new Trnsys components. Therefore I applied the example in the get started manual (attached the .for file created) but I got the following Fortran errors:

 

--------------------Configuration: Type200 - Win32 Debug--------------------

Linking...

   Creating library Debug/Type200.lib and object Debug/Type200.exp

Type200.obj : error LNK2001: unresolved external symbol _TYPECK at 20

Type200.obj : error LNK2001: unresolved external symbol _TRNSYSFUNCTIONS_mp_GETSIMULATIONSTARTTIME

Type200.obj : error LNK2001: unresolved external symbol _TRNSYSFUNCTIONS_mp_GETSIMULATIONTIMESTEP

dfor.lib(DFORMAIN.OBJ) : error LNK2001: unresolved external symbol _MAIN__

Debug/Type200.exe : fatal error LNK1120: 4 unresolved externals

Error executing link.exe.

 

Type200.exe - 5 error(s), 0 warning(s)

 

Any ideas !!!!

Thank in advance

Essam

*************************************************

ESSAM SH. MOHAMED

MSc. ENERGY SYSTEMS

Agricultural University of Athens

Department of Natural Resources and Agricultural Engineering

75, Iera Odos street, 118 55 Athens, Greece

Office Telephone: +30-210-5294046, Fax: +30-210-5294032

Mobile phone :+30-6974002119

E-mail: esamsh at aua.gr <mailto:esamsh at aua.gr> 

Web:http:/www.aua.gr

 





************************************************************************************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses.
************************************************************************************







 
 
************************************************************************************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses.
************************************************************************************


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20080219/e6eb110b/attachment-0005.htm>


More information about the TRNSYS-users mailing list