Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-27-2009, 12:34 AM   #1
Registered: Jul 2009
Posts: 81

Rep: Reputation: 15
CPPLINK: Undefined variable.

hi , i am new in linux. i am using opensuse 11.0. my configurations are

wcpplib/install> uname -a
Linux linux-by4q #1 SMP 2008-06-07 01:55:22 +0200 i686 i686 i386 GNU/Linux

i have made TCSH as my default login shell. i want to install HEED-C++ 2.07 software used for the simulation of gaseous detectors.for that i need to install WCPPLIB- a library. in the installation manual it is written that to in stall this library "run stript concom.b" where cocom.b is a file in that library.
1.what does it mean ?
2.the file concom.b contains only these three lines given below:
#! /usr/bin/env tcsh
$CPPLINK -o concom.e concom.c
#cp concom.e ../bin/concom
when i type "$CPPLINK -o concom.e concom.c" in shell prompt it returns

" wcpplib/install> $CPPLINK -o concom.e concom.c
CPPLINK: Undefined variable. "

also in the manual it is said that before installation environment variable has to set.i set the environment variables in the .tcshrc file as follows:


### 1.for scientific linux version 4.1

#setenv CPPCOMPILE "g++ -c "
#setenv CPPCOMPILE "g++ "
#setenv CPPCOMPILE "g++ -g -c "
#setenv CPPCOMPILE "g++ -g "

### 2.for Linux, RedHat version 8.0


### 3.for Linux, RedHat older version

#setenv CPPCOMPILE "g++ -fhuge-objects -c "
#setenv CPPCOMPILE "g++ -fhuge-objects "
#setenv CPPCOMPILE "g++ -fhuge-objects -g -c "
#setenv CPPCOMPILE "g++ -fhuge-objects -g "

### 4.for Solaris and most of the others.

#setenv CPPCOMPILE "CC -c "
#setenv CPPCOMPILE "CC "
#setenv CPPCOMPILE "CC -g -c "
#setenv CPPCOMPILE "CC -g "

setenv FORTRAN77 g77
setenv ARCOMMAND "ar -rs"


setenv CERNLIB /cern/pro/lib

setenv SPACKLIB "-L/cern/2000/lib -lpacklib -lnsl "

setenv CFLIBSERV "-lg2c"


as you can see ihave choosen the second it correct ?

3. how to set the LD_LIBRARY_PATH in this case ?

you can get the HEED-C++ 2.07 software and WCPPLIB library in the form of tar archive with the installation manual from the internet page am attaching the installation manual with this.

anybody can help in these problems ? pardon me for my gramatical mistakes and thanks in advance.
Old 10-27-2009, 05:38 PM   #2
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2015, Slack14.1 DebJessie, + 50+ other Linux OS, for test only.
Posts: 15,619

Rep: Reputation: 2990Reputation: 2990Reputation: 2990Reputation: 2990Reputation: 2990Reputation: 2990Reputation: 2990Reputation: 2990Reputation: 2990Reputation: 2990Reputation: 2990
You may find some hints here :

Google .. wccplib ..
The export commands can all be copied into one script,
like the Heed ''.
Good luck !

P.S.: Add 1) run script means : a) cd wcpplib/install
b) ./concom.b
Add 2) CPPLINK will not be undefined after doing the
command : export CPPLINK=g++
when i type "$CPPLINK -o concom.e concom.c" in shell prompt
Please don't. 'concom.c' creates no objects, 'concom.c' is supposed
to create all the Makefiles. Please read the text in 'concom.c'.

Last edited by knudfl; 10-28-2009 at 04:35 AM.



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
MANPATH: Undefined variable adelaide98 Linux - General 10 08-06-2009 11:24 AM
Script issue with "Undefined variable" fuske Linux - General 3 05-19-2009 09:41 AM
Snort error on middlebox: Undefined variable name wsduvall Linux - Security 2 02-18-2009 07:56 PM
PHP Problem ('undefined index', 'undefined function') zokken Programming 2 12-04-2008 10:18 AM
undefined variable increments in PERL gaynut Programming 3 09-18-2008 09:46 AM

All times are GMT -5. The time now is 07:55 AM.

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