LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-15-2012, 09:23 AM   #1
lili2012
LQ Newbie
 
Registered: Aug 2012
Posts: 2

Rep: Reputation: Disabled
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,
 
Old 08-16-2012, 02:15 AM   #2
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Debian, SL
Posts: 5,082

Rep: Reputation: 1097Reputation: 1097Reputation: 1097Reputation: 1097Reputation: 1097Reputation: 1097Reputation: 1097Reputation: 1097
Hi,

Quote:
Originally Posted by lili2012 View Post
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.
 
Old 08-16-2012, 10:17 AM   #3
lili2012
LQ Newbie
 
Registered: Aug 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
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 View Post
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,
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fflags hanamilani Linux - Software 1 12-31-2008 05:28 AM


All times are GMT -5. The time now is 11:35 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration