LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-20-2008, 07:53 AM   #1
laucian
Member
 
Registered: Oct 2005
Distribution: Ubuntu 9.04
Posts: 124
Blog Entries: 2

Rep: Reputation: 15
Fortran - G95 - Wrong Syntax or wrong compiler settings


hi everyone,

i have a huge fortran code, which i am trying to get compiled. I didn't write the code, i just have to get it compiled, but i am getting this error message.

Code:
g95  -g -fbounds-check  -c /home/cumhur/doktorArbeit//spraydat.f
In file /home/cumhur/doktorArbeit//spraydat.f:172

       DATA ICHEM/17*0,23,0,10,0,0,0,0,0,0,0,0,0,0,0,0,0,1,6*0/
            1
Error: Not enough values in DATA statement at (1)
what is the meaning of this? is it syntax error or anything else about the compiler?

thanks
 
Old 03-21-2008, 10:18 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
It simply states you made an assignement to the variable ICHEM using a lower number of values in respect of the variable declaration. Check in the declaration section, maybe you will find something like
Code:
INTEGER*4 ICHEM(41)
which declares an array of integers with 41 values, but you assigned only 40 in the DATA statement.
 
  


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
What on Earth is wrong with this fortran code!? Arghhhhh!!! frankie_DJ Programming 5 11-12-2007 06:46 PM
is this redirect syntax wrong? neocontrol Linux - Server 9 03-06-2007 11:19 AM
MySQL not starting, wrong syntax??? riscphree Linux - Software 2 12-21-2005 08:13 PM
Fortran g95 source-code line truncation feature is annoying elavid Programming 1 06-09-2005 11:15 AM
What's wrong with this iptables syntax?? registering Linux - Security 3 06-16-2004 03:54 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration