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

Re: [TRNSYS-users] Fail rebuilding Trnsys



Guillermo,
The "unresolved external symbol" error means that your component (TYPE200), cannot find a subroutine that is called TYPE141. In TRNSYS 14.2 (which I assume you are using based on the location and name of the DLL that you are creating), all TYPE subroutines had to be included in the same Fortran workspace; you need to make sure that a subroutine called TYPE141 exists in your Fortran project.
Kind regards,
 David


At 14:29 9/12/2006, Guillermo Enrique Cabral wrote:
Hello! I create a new type that call another type. The problem is that when
rebuild Trnsys I get the next error mesage:

DUMF40.LIB(DUM200.OBJ) : error LNK2005: _TYPE200 already defined in
TYPE200.OBJ
DUMF40.LIB(DUM200.OBJ) : warning LNK4006: _TYPE200 already defined in
TYPE200.OB
J; second definition ignored
   Creating library \trnwin\TRNLIB32.lib and object \trnwin\TRNLIB32.exp
TYPE200.OBJ : error LNK2001: unresolved external symbol _TYPE141@28
\trnwin\TRNLIB32.DLL : fatal error LNK1120: 1 unresolved externals

???????????????????????????????????????????????????????????????
?           TRNSYS Executable File is up to date!             ?
???????????????????????????????????????????????????????????????
Presione una tecla para continuar . . .



TYPE200 is the module that I create and TYPE141 is the module that is being
called from TYPE200. I wish to know if it can be done in this way and what I
can do to solve this.

Guillermo Cabral
_______________________________________________
TRNSYS-users mailing list
TRNSYS-users@engr.wisc.edu
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@tess-inc.com
Web Pages:  http://www.tess-inc.com     and      http://www.trnsys.com

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