[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TRNSYS-users] how to make Trnsys read...




I think that most of your problems might stem from needing to create a file called Type36.dll, not Type36.exe. The structure of TRNSYS 15 is that the executable program trnsys.exe calls a Windows Dynamic Link Library called trnlib.dll. What you need to do is open the file Trnsys15\Workspace\Cvf66a\trnlib\trnlib.dsw. Next open the file Type36.for (within the project by clicking on Type36 in the list on the left.) Make your changes and then click "rebuild all" this will recompile all of the code at once (there is no need to compile pieces individually) and then relink everything into a new copy of trnlib.dll.
Kind regards,
David



At 03:43 AM 2/4/2005, mk23@xxxxxxxxx wrote:
hi to all.

we followed Michael's suggestions but probaly we skipped some steps again in building a new TRNlib.dll

> I think you may be skipping the link process. After all Types and kernel
> routines are compiled into .obj files,

ONE BY ONE?!!! we didn't find any "compile all" command or similar...

> they need to be linked together
> to form a DLL (TRNDll.dll in TRNSYS 16, TRNLib.dll in TRNSYS 15). If you
> are using the CVF compiler the easier way is to use the workspace
> included in the distribution and rebuild the DLL (F7).

after compiling the type 36 we modified (from the CVF). we selected "rebuild all" command but a message like below came out. It is the same song if doing it from another type...
It seems not finding the kernal routines, but nothing change even putting types and kernel routines file together in the same folder...


here the errors message:

Deleting intermediate files and output files for project 'Type36 - Win32 Debug'.
--------------------Configuration: Type36 - Win32 Debug--------------------
Compiling Fortran...
C:\trnsys15\Types\Type36.for
Linking...
Type36.obj : error LNK2001: unresolved external symbol _LINKCK@24
Type36.obj : error LNK2001: unresolved external symbol _TALF@24
Type36.obj : error LNK2001: unresolved external symbol _TYPECK@20
Type36.obj : error LNK2001: unresolved external symbol _RCHECK@20
dfor.lib(DFORMAIN.OBJ) : error LNK2001: unresolved external symbol _MAIN__
Debug/Type36.exe : fatal error LNK1120: 5 unresolved externals
Error executing link.exe.


Type36.exe - 6 error(s), 0 warning(s)

HOW TO LINK KERNAL ROUTINES AND TYPES? IT DOESN'T SEEM TO BE AUTOMATIC WITH THE REBUILD ALL COMMAND...

we now me are messing up our life and the trnsys version installed here...be patient!...

Pietro and Michele




> Pietro, > > together with a collegue we modified type 36 and we compiled it. we > > susptituted its compiled files in the folder TYPES but trnsys engine > > seems no to read the new files. We know we are wrong but we don't know > > where... > > I think you may be skipping the link process. After all Types and kernel > routines are compiled into .obj files, they need to be linked together > to form a DLL (TRNDll.dll in TRNSYS 16, TRNLib.dll in TRNSYS 15). If you > are using the CVF compiler the easier way is to use the workspace > included in the distribution and rebuild the DLL (F7). The time stamp of > the DLL should have changed after that. > > Also, please note that if you use TRNSYS 16, it may be safer and more > convenient in the long run to create a modified copy of Type 36 (say > Type 236) which you would compile into a separate DLL. This will make it > easier for you to share the Type with other users and it will also make > TRNSYS updates easier to apply. > Volume 8 of the documentation has instructions to create a new component > and compile it into an external DLL. > > Kind regards, > > Michaël Kummert > > -- > _________________________________________________________ > > Michaël Kummert > > Solar Energy Laboratory - University of Wisconsin-Madison > 1303 Engr Res Bldg, 1500 Engineering Drive > Madison, WI 53706 > > Tel: +1 (608) 263-1589 > Fax: +1 (608) 262-8464 > E-mail: kummert@xxxxxxxxxxxxx > > SEL Web Site: http://sel.me.wisc.edu > TRNSYS Web Site: http://sel.me.wisc.edu/trnsys > _______________________________________________ > TRNSYS-users mailing list > TRNSYS-users@xxxxxxxxxxxxx > https://www.cae.wisc.edu/mailman/listinfo/trnsys-users >




____________________________________________________________ Navighi a 2 MEGA e i primi 3 mesi sono GRATIS. Scegli Libero Adsl Flat senza limiti su http://www.libero.it



_______________________________________________
TRNSYS-users mailing list
TRNSYS-users@xxxxxxxxxxxxx
https://www.cae.wisc.edu/mailman/listinfo/trnsys-users

**************************************************************************************** Thermal Energy System Specialists (TESS), LLC David BRADLEY 2916 Marketplace Drive - Suite 104 Partner Madison, WI 53719 Phone: (608) 274-2577 USA Fax: (608) 278-1475 E-mail: bradley@xxxxxxxxxxxx Web Pages: http://www.tess-inc.com and http://www.trnsys.com

"Providing software solutions for today's energy engineering projects"
****************************************************************************************



_______________________________________________
TRNSYS-users mailing list
TRNSYS-users@xxxxxxxxxxxxx
https://www.cae.wisc.edu/mailman/listinfo/trnsys-users