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

[TRNSYS-users] Error compiling new component



Hi at all,
 
I am using trnsys with fortran g95 compiler, when I create a new objekt and also when I edit an existing one, compiling is no prolem. bbut when I want to build the file, the error
 
>g95 -shared -mrtd -o  c:\programme\Trnsys16_1\Userlib\ReleaseDlls\Type191coolingDemand.dll trnsysconstants.o trnsysfunctions.o typeck.o messages.o Storage.o Diffeq.o trnsysdata.o pq.o linkck.o Psych.o Type191coolingDemand.o
ld: -shared not supported
>Exit code: 1
 
appears.
 
when I delete the "-shared" from the fortran properties the following error appears:
 
>g95  -mrtd -o  c:\programme\Trnsys16_1\Userlib\ReleaseDlls\Type191coolingDemand.dll trnsysconstants.o trnsysfunctions.o typeck.o messages.o Storage.o Diffeq.o trnsysdata.o pq.o linkck.o Psych.o Type191coolingDemand.o
c:/programme/g95/bin/../lib/gcc-lib/i686-pc-mingw32/4.0.4/\libf95.a(main.o)(.text+0x32): undefined reference to `MAIN_'
>Exit code: 1
 
 
Maybe someone has some idea what the prolem is,
 
thanks,
Marius Müller