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@aua.gr] Dear all, I am relatively new with
coupling new Trnsys components. Therefore I applied the example in the get
started manual --------------------Configuration:
Type200 - Win32 Debug-------------------- Linking...
Creating library Debug/Type200.lib and object Debug/Type200.exp Type200.obj
: error LNK2001: unresolved external symbol _TYPECK@20 Type200.obj
: error LNK2001: unresolved external symbol _TRNSYSFUNCTIONS_mp_GETSIMULATIONSTARTTIME Type200.obj
: error LNK2001: unresolved external symbol
_TRNSYSFUNCTIONS_mp_GETSIMULATIONTIMESTEP dfor.lib Debug/Type200.exe
: fatal error LNK1120: 4 unresolved externals Error
executing link.exe. Type200.exe
- 5 error Any ideas !!!! Thank in advance Essam ************************************************* ESSAM SH.
MOHAMED MSc. ENERGY
SYSTEMS Agricultural Department of
Natural Resources and Agricultural Engineering 75, Office
Telephone: Mobile phone
:+30-6974002119 E-mail: esamsh@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. ************************************************************************************ |