Problem with "make" command in Linux


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Problem with "make" command in Linux
# 8  
Old 07-24-2013
Code:
-bash-4.1# yum provides */iostream.h
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: mirror.softaculous.com
 * extras: ftp.halifax.rwth-aachen.de
 * updates: ftp.halifax.rwth-aachen.de
base/filelists_db                                                                                            | 5.9 MB     00:01     
extras/filelists_db                                                                                          |  10 kB     00:00     
updates/filelists_db                                                                                         | 3.5 MB     00:02     

compat-gcc-34-c++-3.4.6-19.el6.x86_64 : C++ support for compatibility compiler
Repo        : base
Matched from:
Filename    : /usr/include/c++/3.4.6/backward/iostream.h

# 9  
Old 07-24-2013
Hi Scott,
I got this message with your advise
Code:
sbinf-01 (kmohanas) 1000 $yum provides */iostream.h
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: mirror.as24220.net
 * extras: ftp.swin.edu.au
 * updates: mirror.as24220.net
base                                                     | 3.7 kB     00:00     
extras                                                   | 3.4 kB     00:00     
updates                                                  | 3.4 kB     00:00     
updates/filelists_db                                     | 3.5 MB     00:00     
glibmm24-devel-2.22.1-1.el6.x86_64 : Headers for developing programs that will
                                   : use glibmm24
Repo        : base
Matched from:
Filename    : /usr/include/giomm-2.4/giomm/iostream.h



compat-gcc-34-c++-3.4.6-19.el6.x86_64 : C++ support for compatibility compiler
Repo        : base
Matched from:
Filename    : /usr/include/c++/3.4.6/backward/iostream.h



glibmm24-devel-2.22.1-1.el6.i686 : Headers for developing programs that will use
                                 : glibmm24
Repo        : base
Matched from:
Filename    : /usr/include/giomm-2.4/giomm/iostream.h

# 10  
Old 07-24-2013
It was intended as a hint, to find which package contains the file you are looking for.

I highlighted the package which, from that list, was most likely to provide the missing file.
# 11  
Old 07-24-2013
Hi Scott,
Sorry that I couldn't get your hint. I haven't used all this before. However, I installed the package what you mentioned, still I am having the same problem as before. Could you please let me know where I could be possibly wrong.
# 12  
Old 07-24-2013
You might need to include that directory (/usr/include/c++/3.4.6/backward) in your INClude path.
# 13  
Old 07-24-2013
Hi Scott,
I am very sorry for repeated questions. Should I include the path in the make file. I am pasting here the make file.
Code:
gm.o wf.o init.o rparf.o  rseqf.o  FBmain.o FBa.o Coim.o Coia.o Pla.o
    g++ -O2 -o marcoil pgm.o wf.o init.o rparf.o  rseqf.o  FBmain.o FBa.o Coim.o Coia.o Pla.o  -lm -lc -lstdc++
    
pgm.o:  pgm.cpp pgm.h PlatformMain.h globals.h 
    g++  -O2 -c pgm.cpp 
     
Pla.o: PlatformMain.h  PlatformMain.cpp  globals.h init.h  CoilsMain.h FBmain.h 
    g++  -O2 -c -o Pla.o PlatformMain.cpp

init.o: init.h  init.cpp globals.h 
    g++  -O2 -c  init.cpp

FBmain.o: FBmain.h  FBmain.cpp  FBalgorithm.h globals.h read.seqfileC.h read.parfiles.h write.files.h 
    g++  -O2 -c  FBmain.cpp

FBa.o: FBalgorithm.h  FBalgorithm.cpp  globals.h 
    g++  -O2 -c -o FBa.o FBalgorithm.cpp

rseqf.o: read.seqfileC.h  read.seqfileC.cpp globals.h 
    g++  -O2 -c -o rseqf.o read.seqfileC.cpp

rparf.o: read.parfiles.h  read.parfiles.cpp  globals.h
    g++  -O2 -c -o rparf.o read.parfiles.cpp

Coim.o: CoilsMain.h  CoilsMain.cpp  CoilsAlgo.h globals.h read.seqfileC.h read.parfiles.h write.files.h 
    g++  -O2 -c -o Coim.o CoilsMain.cpp

Coia.o: CoilsAlgo.h  CoilsAlgo.cpp  globals.h 
    g++  -O2 -c -o Coia.o CoilsAlgo.cpp

wf.o: write.files.h  write.files.cpp  globals.h 
    g++  -O2 -c -o wf.o write.files.cpp

clean:
    rm *.o

# 14  
Old 07-24-2013
Yes, you should add that directory to the include path.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

2. Shell Programming and Scripting

Problem with "find" and "grep" command

I want to list all files/lines which except those which contain the pattern ' /proc/' OR ' /sys/' (mind the leading blank). In a first approach I coded: find / -exec ls -ld {} | grep -v ' /proc/| /sys/' \; > /tmp/list.txt But this doesn't work. I got an error (under Ubuntu): grep:... (5 Replies)
Discussion started by: pstein
5 Replies

3. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

4. Shell Programming and Scripting

Make scipt except from "Y","y" and "yes" to take [Enter] as being "yes"

This is the script: #!/bin/sh if ; then rm -rf /usr/share/WallpaperChanger; fi if ; then rm -rf /usr/bin/wallch; fi; if ; then rm -rf /usr/share/applications/wallch.desktop; fi if ; then rm -rf /usr/share/doc/wallch; fi if ; then rm -rf /usr/share/man/man1/wallch.1.gz; fi echo "Delete... (4 Replies)
Discussion started by: hakermania
4 Replies

5. Programming

compile fails in linux ... "No rule to make target" ... HELP

hello all, attached you can find a tool (written in C) that i really need to make it compile under linux i am able to compile and run it successfully in mac os x, but in linux the compilation fails the only thing that i did so far is to change the following #include <sys/malloc.h> to... (13 Replies)
Discussion started by: OneDreamCloser
13 Replies

6. Programming

how could i make a program mixed with many "|", "<" and ">"

I have written following code to do: ls -l | wc -w, it works: but when there are not only a single "|", if there are more such as: ls -l | sort -r | sort | sort -r, This program does not work, i want to know how could i deal with it when there are more "|", another situation is that, if it mixes... (2 Replies)
Discussion started by: strugglingman
2 Replies

7. UNIX for Dummies Questions & Answers

Unix "at" / "Cron" Command New Problem...Need help

Hi All, I am trying to schedule a one time job using the at command with the help of shell script for my project. The shell script should take a parameter as a command line argument from the at command itself. Is it possible to take a command line parameter for a shell script in the command... (3 Replies)
Discussion started by: Mohanraj
3 Replies

8. UNIX for Advanced & Expert Users

make problem with "vnc"

i'm starting to think i post too much. alright a new problem... i'm trying to do the "make World" for Xvnc, and i keep running into the following error: # make World Building Release 6.3 of the X Window System. I hope you checked the configuration parameters in ./config/cf to see if... (2 Replies)
Discussion started by: xyyz
2 Replies
Login or Register to Ask a Question