LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Fflags (http://www.linuxquestions.org/questions/linux-software-2/fflags-4175422195/)

lili2012 08-15-2012 09:23 AM

Fflags
 
Good Morning,
I have two requests:

1) What does this line mean?:
FFLAGS := -C -dalign -O0

2) when I compile a code in linux, I receive this kind of message:
c date.f
make: c: No such file or directory
make: [date.o] Error 1 (ignored)

What does it mean? And what could I do to resolve it?

Thanks,

evo2 08-16-2012 02:15 AM

Hi,

Quote:

Originally Posted by lili2012 (Post 4754699)
1) What does this line mean?:
FFLAGS := -C -dalign -O0

Assuming this is in a Makefile it appears to be options that are passed to a fortran compiler.

Quote:

2) when I compile a code in linux, I receive this kind of message:
c date.f
make: c: No such file or directory
make: [date.o] Error 1 (ignored)

What does it mean? And what could I do to resolve it?
That looks like you are trying to run a non existant program called "c" on a file containing fortran source code. If you are looking for a fortran compiler try gfortran (or perhaps g77), if you want a c compiler try gcc.

HTH,

Evo2.

lili2012 08-16-2012 10:17 AM

Thank you Evo2. You increase my understanding.

Yes it a Makefile. But finally, I decided not using this one and changed as you wrote to try gfortan.

Quote:

Originally Posted by evo2 (Post 4755303)
Hi,


Assuming this is in a Makefile it appears to be options that are passed to a fortran compiler.


That looks like you are trying to run a non existant program called "c" on a file containing fortran source code. If you are looking for a fortran compiler try gfortran (or perhaps g77), if you want a c compiler try gcc.

HTH,

Evo2.

After changing, I receive another error message:

{513}veyrier:strikev50% gfortran-mp-4.4 -o strike *.f
ld: duplicate symbol _MAIN__ in /var/folders/hr/30d08mhd4ydf3l8t0w4k_fdh0000gn/T//cc3vOiO7.o and /var/folders/hr/30d08mhd4ydf3l8t0w4k_fdh0000gn/T//ccTLJfPM.o for architecture x86_64
collect2: ld returned 1 exit status

I don't know if you could help me to fix it.
Thanks,


All times are GMT -5. The time now is 05:34 AM.