[TRNSYS-users] FORTRAN compiler

David Bradley bradley at tess-inc.com
Tue Oct 7 07:05:56 PDT 2008


John,
I don't have any experience with the PGI compiler. Some time ago the SEL 
tried unsuccessfully to make TRNSYS work with an external DLL made by 
the Absoft Fortran compiler. The problem seemed to come from the way 
that the two compilers "decorate" the names of the functions that they 
contain. For example, a native call to the GetVersion function results 
in the compiler generating code equivalent to call _GetVersion at 0. As I 
understand it, the "_" and the "@0" make sure that the name of the 
function is not the same as the name of some other function exported by 
some other piece of software that you have installed on your computer. 
Everything is fine if you use the same compiler for making all of your 
DLLs or if the two compilers that you are using have the same decorating 
convention. The problem comes when the two compilers decorate names 
differently as was the case with the Absoft and Intel / CVF compilers. I 
would guess that the problem you are finding is that PGI and CFV 
decorate the names differently. If you can send me the external Type DLL 
that you created with the PGI Compiler and the Fortran code that you 
used to create it, I can try to see if I can get it to talk to the TRNDll.
Kind regards,
David


bushjd at umd.edu wrote:
> Hey All, 
> I have been trying to get my compiler up and running, and here's the new question:
>
> Has anyone used PGI's (Portland Group's) PGI Visual Fortran 2005 with any success?  
> Or: CAN it even be used?
>
> If anyone has used it, I'll have a few follow-up questions, but I'm beginning to suspect that the problem may be that I just shouldn't be using this compiler.  
>
> Thanks in advance!
> John
> _______________________________________________
> TRNSYS-users mailing list
> TRNSYS-users at cae.wisc.edu
> https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users
>
>
>
>   

-- 
***********************************************************************
Thermal Energy System Specialists (TESS), LLC 
David BRADLEY                      2916 Marketplace Drive - Suite 104 
Partner                            Madison, WI 53719 
                                   USA
P: +1.608.274.2577 
F: +1.608.278.1475
E-mail: bradley at tess-inc.com 
Web Pages:  http://www.tess-inc.com    and      http://www.trnsys.com

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




More information about the TRNSYS-users mailing list