OPTS.h does not work properly on Windows
Closed this issue · 2 comments
jannefiluren commented
I get the following warnings when compiling on windows:
Warning: DRIVE.f90:6: Illegal preprocessor directive
Warning: DRIVE.f90:52: Illegal preprocessor directive
Warning: DRIVE.f90:58: Illegal preprocessor directive
Warning: DRIVE.f90:60: Illegal preprocessor directive
Warning: DRIVE.f90:63: Illegal preprocessor directive
And the model does not work properly. On linux everything works fine.
I use the compile files available here:
https://github.com/jmgnve/FSM2/blob/master/compil.bat
https://github.com/jmgnve/FSM2/blob/master/compil.sh
Jan
RichardEssery commented
I haven’t tried compiling FSM2 in Windows, but I think the problem is that the compiler needs to be told to use the pre-processor. Try this for the compilation line:
gfortran %mods% %routines% -cpp -o FSM
From: Jan Magnusson [mailto:notifications@github.com]
Sent: 15 January 2018 14:02
To: RichardEssery/FSM2 <FSM2@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Subject: [RichardEssery/FSM2] OPTS.h does not work properly on Windows (#1)
I get the following warnings when compiling on windows:
Warning: DRIVE.f90:6: Illegal preprocessor directive
Warning: DRIVE.f90:52: Illegal preprocessor directive
Warning: DRIVE.f90:58: Illegal preprocessor directive
Warning: DRIVE.f90:60: Illegal preprocessor directive
Warning: DRIVE.f90:63: Illegal preprocessor directive
And the model does not work properly. On linux everything works fine.
I use the compile files available here:
https://github.com/jmgnve/FSM2/blob/master/compil.bat
https://github.com/jmgnve/FSM2/blob/master/compil.sh
Jan
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#1>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ALXAkqC1s2PUwJApNFxUJvf30_ysxREZks5tK1pIgaJpZM4RedGC>.
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
RichardEssery commented
Windows and linux compilation scripts have been added