Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[photran] using module while source files are in a folder

Hi
i want to have source files in a folder to avoid mixing source, objects, data files. when i use a module in my code, photran can not build the project.
a sample project including 3 files are attached.
1. photran nagging that can not create the .mod file. but when i rename "VarDef" to "vardef" in all files, the problem removes. Fortran in not case-sensetive, so it seems that there is a problem.
2. after doing the above task, i got the following error message:
make all
m2c    -o vardef.o vardef.mod
"vardef.mod": 1: syntax error in compilation unit begin
"vardef.mod": 1: fatal error - file must be named as created.mod
vardef.mod - 0 lines, 160 bytes
make: *** [vardef.o] Error 1

reagards,
Hadian

P.S. i use photran on ubuntu 8.10 and updated the whole eclipse (3.4.2) and its plugins.

Back to the top