[TRNSYS-users] problems linking a non standard type to trndll.dll

Adriana Angelotti Adriana.Angelotti at polimi.it
Tue Mar 8 02:44:29 PST 2005


Dear all,

I'm trying to link a non standard type to trndll.dll in trnsys 16.

The non standard type was written for trnsys 15, then I updated it 
following the Programmer's Guide instructions
in order to run it in "legacy Trnsys 15 mode".

I'm using Compact Visual Fortran 6.6 and the default workspace Cvf66.dsw.
I simply add the new fortran file and its inc file in Trndll files\Source 
Files\ Types and then do a Rebuild all.

But I get:
  - several Warnings like these:
Warning: DEC$ ATTRIBUTES DLLIMPORT is ignored for non-external 
procedure.   [GETSIMULATIONSTARTTIME]
Warning: DEC$ ATTRIBUTES DLLIMPORT is ignored for non-external 
procedure.   [GETSIMULATIONTIMESTEP]
Warning: DEC$ ATTRIBUTES DLLIMPORT is ignored for non-external 
procedure.   [GETLISTINGFILELOGICALUNIT]

- messages like these:
C:\Programmi\Trnsys16\SourceCode\Types\Type66.for(35): Could not find the 
file ifwin.mod.
C:\Programmi\Trnsys16\SourceCode\Types\Type66.for(36): Could not find the 
file ifport.mod.
C:\Programmi\Trnsys16\SourceCode\Kernel\Trnsys.for(54): Could not find the 
file ifport.mod.

- error messages such as:
Comv-tm4.obj : error LNK2001: unresolved external symbol _for_read_dir_i8
Comv-tm7.obj : error LNK2001: unresolved external symbol _for_read_dir_i8
Comv-che.obj : error LNK2001: unresolved external symbol _for_read_dir_i8
Comv-deb.obj : error LNK2001: unresolved external symbol _for_read_dir_i8
Comv-tm1.obj : error LNK2001: unresolved external symbol _for_read_dir_i8
Comv-tm2.obj : error LNK2001: unresolved external symbol _for_read_dir_i8
Comv-inh.obj : error LNK2001: unresolved external symbol _for_write_dir_i8
Comv-tm1.obj : error LNK2001: unresolved external symbol _for_write_dir_i8
Comv-tm4.obj : error LNK2001: unresolved external symbol _for_write_dir_i8
Comv-tm7.obj : error LNK2001: unresolved external symbol _for_write_dir_i8
Debug/TRNDll.dll : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

Can anybody help me understanding these messages and solving these problems?
They don't seem to deal with the new type file.

Thank you very much

Adriana Angelotti

-------------------------------------------------------------------------------------------------------------------




More information about the TRNSYS-users mailing list