Sponsored Content
Top Forums Programming gfortran compiling error: Expected a right parenthesis in expression at (1) Post 302536235 by Corona688 on Monday 4th of July 2011 06:52:11 PM
Old 07-04-2011
That last parenthesis on the right doesn't match with anything.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

integer expression expected error

I'm a beginner so I might make beginner mistakes. I want to count the "#define" directives in every .C file I get the following errors: ./lab1.sh: line 5: ndef: command not found ./lab1.sh: line 6: #!/bin/sh for x in *. do ndef = 'grep -c \#define $x' if ; then ... (2 Replies)
Discussion started by: dark_knight
2 Replies

2. Shell Programming and Scripting

integer expression expected error crontab only

I created a bash script that ran fine for awhile on a nightly crontab but then started crashing with commands not found, so I added PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/home/homedir/scripts/myscriptdir export PATH and now I don't get those errors, but... (2 Replies)
Discussion started by: unclecameron
2 Replies

3. Shell Programming and Scripting

Display Error [: : integer expression expected

i have lunix 5.4 i make script to tack the export from database 11g by oracle user the oracle sheel is /bin/bash when run this script display this error ./daily_xport_prod: line 36: the daily_xport_prod script #! /bin/sh # ORACLE_HOME=/u01/appl/oracle/product/11.2.0/db_1 export... (8 Replies)
Discussion started by: m_salah
8 Replies

4. Programming

gfortran compiling problem,calling too many arguments

Hello, My problem is with compiling a program modelling shallow water. In it there is a subroutine called stat with 9 parameters. In the main program it is called with 9 parameters also I'm running Ubuntu 11.04 with gfortran version 4.5. Thanks. ---------- Post updated at 11:57 PM... (0 Replies)
Discussion started by: b_franz
0 Replies

5. Shell Programming and Scripting

if script error: integer expression expected

Hi, i am making a simple program with a optional -t as the 3rd parameter. Submit course assignment -t dir In the script, i wrote: #!/bin/bash echo "this is course: ${1}" echo "this is assignment #: ${2}" echo "late? : ${3}" if then echo "this is late" fi but this gives me a :... (3 Replies)
Discussion started by: leonmerc
3 Replies

6. Shell Programming and Scripting

Error: integer expression expected

root@server01 # df -h | grep /tmp | awk {'print $3}' 252M root@server01 # root@server01 # cat /usr/local/tmpchk.sh #!/bin/sh x=`df -h | grep /tmp | awk {'print $3}'` if ; then rm -fr /tmp/somefolder/ else echo "its small" (2 Replies)
Discussion started by: fed.linuxgossip
2 Replies

7. Programming

problem compiling with gfortran in two different debian releases

Hello, I hope this is the correct forum for this post. I have the following problem: A Fortran 77 program that has to deal with several large matrices (each approx. 5000 x 5000) and uses lapack and blas subroutines has been correctly compiled and executed using Debian Etch. When I tried... (1 Reply)
Discussion started by: currix
1 Replies

8. UNIX for Dummies Questions & Answers

Integer expression expected error in script

When i run the following code i get an error that says Integer expression expected! How do i fix this? #!/bin/bash if ;then echo "wrong" exit 1 fi if ;then for i in /dev;do if ;then echo $i ls -l fi (4 Replies)
Discussion started by: kotsos13
4 Replies

9. Shell Programming and Scripting

if condition error: integer expression expected

I am trying to run following condition with both variables having numeric values "1,2,3" if ;when i run it i get following error: $NEW_STATE: integer expression expected Please correct me where I'm doing wrong. I'm trying to check either New State is greater or Old state.... (0 Replies)
Discussion started by: kashif.live
0 Replies

10. Shell Programming and Scripting

Getting error in bash script; expr $a + 1: integer expression expected

Hi, I am new to shell/bash script. I am trying to run below script #!/bin/bash a=0 b=10 if then echo "a is equal to be" else echo "a is not equal to be" fi MAX=10 while do echo $a a='expr $a + 1' done (1 Reply)
Discussion started by: Mallikgm
1 Replies
CERNLIB(1)						      General Commands Manual							CERNLIB(1)

NAME
cernlib - print CERN library dependencies SYNOPSIS
cernlib [options] libraries DESCRIPTION
cernlib is a tool to list the compiler and linker options necessary to compile a CERNLIB program that has the given library dependencies. It is generally used within a command substitution, as in the following example: gfortran -o myprogram myprogram.F `cernlib -G Motif pawlib` This version of cernlib has been completely rewritten from the original script provided by CERN. It now does recursive library dependency checking and removes duplicate entries. Note that by default, the cernlib script assumes that the CERN libraries are to be linked against statically; if the environment variables $CERN or $CERN_ROOT are specified, it looks for the libraries only in the "lib" subdirectory of those locations, not any "shlib" subdirec- tory. Furthermore, the script brackets the CERN libraries with linker instructions to link statically. This is done to preserve the orig- inal upstream behavior, in which all CERNLIB libraries exist only in static form. For instance, "cernlib packlib" outputs: -Wl,-static -lpacklib -lkernlib -Wl,-dy -lm -lnsl -lcrypt -ldl -lg2c If you want to link against ALL libraries (including CERNLIB) either statically or dynamically, call the cernlib script with its -safe flag to omit these bracketing linker flags. That is: if you want to link against all libraries (not just CERNLIB) statically, use the -static compiler flag and call cernlib with its -safe flag: gfortran -o myprogram myprogram.F -static `cernlib -safe -G Motif pawlib` and if you want to link against all libraries (including the CERN libraries) dynamically, use the same command without the -static compiler flag (the linker assumes dynamic linking by default): gfortran -o myprogram myprogram.F `cernlib -safe -G Motif pawlib` OPTIONS
-a arch Specify a system architecture, e.g. Linux (default), AIX, HP-UX, etc. -dy Equivalent to -safe; for backwards compatibility. -G driver Specify a graphics driver. The available options on Linux are X11 and Motif (the latter option will also work when the Lesstif library is present). -P, -s Ignored; for backwards compatibility. -safe Do not make any assumptions about whether the CERN libraries should be linked against dynamically or statically. (The default behavior, if this flag is not used, is to link them statically.) -u Do not include architecture-specific libraries in the output. -v version Specify version of $CERN_LEVEL. This is meaningless unless you have installed an upstream version of CERNLIB (i.e. not packaged by Debian); see the file /usr/share/doc/cernlib-base/README.Debian. -?, --help Show a summary of options. -- Tell cernlib that this marks the end of cernlib-specific flags, and all following arguments are to be parsed as described in the LIBRARIES section below. If -- is not given, the first word parsed as a library name will be the first word not starting with a hyphen "-" that is not an argument to a preceding cernlib flag. LIBRARIES
The following library names are recognized by this version of the cernlib script. These names may be used exactly as shown here, or pre- fixed by "-l". Core CERN libraries mathlib, packlib, kernlib Graphics and PAW libraries graflib, pawlib Monte Carlo and GEANT libraries cojets, eurodec, geant321, herwig59, isajet758, pdflib804, photos202, phtools Additional Monte Carlo libraries (to obtain these, see /usr/share/doc/montecarlo-base/README.Debian) ariadne, ariadne-p5, fritiof, jetset, lepto, pythia5, pythia6 Aliases The numerals at the end may be left off most of the library names above. Other library names Various other names are recognized for backwards compatibility, internal use, and non-Linux architectures. For the complete list, please see the cernlib script. Other Any names not recognized by cernlib that start with "-l" or with any character other than a hyphen ("-") are output as -l${name#-l} (i.e., are assumed to be a library). Names starting with a hyphen for which the second character is not "l" are assumed to be com- piler flags, and are output at the beginning of the line before all other output. SEE ALSO
/usr/share/doc/cernlib-base/README.Debian describes some of the changes that have been made to the CERN libraries in order to comply with Debian policy and the Filesystem Hierarchy Standard. CERNLIB documentation for all related libraries and programs is available at the following URL: http://cern.ch/cernlib/ AUTHOR
This manual page and the version of the cernlib script that it describes were written by Kevin McCarty <kmccarty@debian.org> for the Debian GNU/Linux system (but may be used by others). They are licensed under the GNU General Public License, version 2 or later (at your choice). COPYRIGHT
Copyright (C) Kevin B. McCarty, 2002, 2003, 2004, 2005, 2006. Jan 6, 2005 CERNLIB(1)
All times are GMT -4. The time now is 10:59 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy