Linux - Server This forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
11-22-2012, 07:02 PM
#1
LQ Newbie
Registered: Nov 2012
Posts: 5
Rep:
No rule to make target /usr/include/C++/4.1.0/list
the subject is the error i get when i try to compile the library.
the Makefile is attached below (will greatly appreciate your help)
# $Id: Makefile,v 1.71
Exp $
# Makefile for the new libgnls
CXX=g++
LOCALFLAGS= -D_GNU_SOURCE -ffast-math -D__linux__\
-funroll-loops -DOVERRIDE_COMPLEX_NORM \
-finline-limit=1000 -L:/users/eng/cvcluster/lib/fftw2/
# -pg
# -DOVERRIDE_COMPLEX_NORM to define inline double norm(const Complex&)
PREFIX=/usr/local
CXXFLAGS= -g -O3 -Wall -Wstrict-prototypes \
-I. -I.. $(LOCALFLAGS)
CXX=g++
###CXXFLAGS= -g -O3 -Wall -Wstrict-prototypes -Wmissing-declarations \
-Wnested-externs -fno-exceptions -mpentiumpro -malign-double
###CXX=pgCC
###CXXFLAGS= -I. -I.. $(LOCALFLAGS) -L. -L/users/eng/cvcluster/lib \
CXX=g++
CXXFLAGS= -g -O3 -Wall -Wstrict-prototypes -Wmissing-declarations \
-Wnested-externs -fno-exceptions -mpentiumpro -malign-double
###--one_instantiation_per_object -fast -g
gnlssrc=System.cc SystemElement.cc error.cc Field.cc Geometry.cc \
InputUnit.cc read_field.cc swap4.cc OutputUnit.cc variance.cc \
Fibre.cc FibreSegment.cc LinearDispersion.cc \
OutputField.cc max_intensity_and_index.cc fwhm.cc \
Average.cc create_gaussian.cc gaussian_peak_power.cc \
Gaussian.cc create_sech.cc sech_peak_power.cc Sech.cc Loop.cc \
Rescale.cc RescaleEnergyTo.cc InputField.cc FixEnergy.cc \
Conjugate.cc NOLM.cc VariationalField.cc complex_normal.cc \
Amplifier.cc RealFilter.cc ComplexFilter.cc GaussianFilter.cc \
SquareFilter.cc LorentzianFilter.cc FibreImpl.cc \
find_periodic.cc VectorField.cc RotatePolarisation.cc \
VariableFibreSegment.cc \
Bit.cc BitPattern.cc make_pattern.cc GeneratePattern.cc \
Detector.cc ElectricalFilter.cc EyeDiagram.cc PRBS.cc \
QFactor.cc calculate_Q_factor.cc FabryPerotFilter.cc \
runge_kutta_fehlberg.cc RamanAmplifiedSegment.cc Loss.cc \
LimitedAmplifier.cc SquaredDetector.cc \
AnyField.cc PDEField.cc ComplexFunction.cc SetZ.cc AdvanceZ.cc \
QFactorCollect.cc Generate.cc SquarePulse.cc \
Branch.cc Compensator.cc EstimateCompensation.cc \
Compensate.cc Add.cc RandomTimeShift.cc FrequencyShift.cc \
RaisedCosine.cc TiltFilter.cc MZModulator.cc DataModulator.cc \
WDMify.cc ReadFrame.cc PerFrame.cc QFactorVariational.cc \
Function.cc Hook.cc RealFilterSum.cc IIRFilter1.cc \
IIRFilter2.cc DPSK_Detector.cc pb2_MZ_modulator.cc \
InPMZModulator.cc CW.cc DGD.cc QPRBS.cc QGeneratePattern.cc \
InPDataModulator.cc InPNRZModulator.cc TruncGaussian.cc PhaseModulator.cc
gnlsprogsrc = eye_diagram.cc Qfactors.cc
gnlsprogs = $(gnlsprogsrc:.cc=)
gnlsprogobj = $(gnlsprogsrc:.cc=.o)
gnlsobj = $(gnlssrc:.cc=.o)
dependencies=$(gnlssrc:.cc=.d)
dependencies += testnew.d
ccfiles = $(gnlssrc)
hfiles = $(ccfiles:.cc=.h) typedefs.h
allhfiles = $(hfiles) gnls.h
installlibdir=$(PREFIX)/lib
installincludedir=$(PREFIX)/include
installbindir=$(PREFIX)/bin
%.d: %.cc
$(CXX) -MD $(CXXFLAGS) $< -E >/dev/null
# includes are of the form <gnls/xxx.h>, so I do need the
# depends on `system includes' as well (-MMD does not work)
%.ps: %.dvi
dvips $<
default: libgnls.a
all: libgnls.a eye_diagram Qfactor Qfactors combine_Q
libgnls.a: $(gnlsobj)
rm -f $@
ar cr $@ $^
### $(CXX) $(CXXFLAGS) --prelink_objects $^
### ar cr $@ $^ Template.dir/*.o
$(gnlsprogs) testnew: % : %.o libgnls.a
$(CXX) $(CXXFLAGS) -o $@ $^ -lfftw
Qfactor: Qfactor.o
$(CXX) $(CXXFLAGS) -o $@ $^
combine_Q: combine_Q.o
$(CXX) $(CXXFLAGS) -o $@ $^
strip:
strip libgnls.a
ar -ts libgnls.a
install: libgnls.a
install -d $(installincludedir)/gnls
install -m 644 $(hfiles) $(installincludedir)/gnls
install -m 644 gnls.h $(installincludedir)
install -m 644 libgnls.a $(installlibdir)
install -m 755 mkSystemElement mkRealFilter mkComplexFilter \
$(installbindir)
install -m 755 reduceIDLps $(installbindir)
# install -m 755 eye_diagram Qfactor Qfactors combine_Q $(installbindir)
clean:
rm -rf *.o *.d a.out core testnew
test_runge_kutta_fehlberg: runge_kutta_fehlberg.cc error.o
$(CXX) $(CXXFLAGS) -DTEST_RUNGE_KUTTA_FEHLBERG -o $@ $^
Makefile: $(dependencies)
include $(dependencies)
11-23-2012, 12:51 PM
#2
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
/usr/include/C++/4.1.0/list :
'list' is a header, provided by "libstdc++-devel" from gcc version 4.1.0 .
Your error has nothing to do with the Makefile.
It's simply a missing header by name 'list'.
Please try : $ ls /usr/include/C++/4.1.0/*
Solution :
Install / reinstall the libstdc++-devel package for the g++ version 4.1.0
Which OS are you using ? ?
.
1 members found this post helpful.
11-23-2012, 04:09 PM
#3
LQ Newbie
Registered: Nov 2012
Posts: 5
Original Poster
Rep:
my OS is vista.
thank you for the leads.
Pls how do i Install / reinstall the libstdc++-devel package for the g++ version 4.1.0?
i used the command "ls /usr/include/C++/4.1.0/*" in the exact directory where the library is located
this is what i got: No match
Last edited by globalinksnn; 11-23-2012 at 04:14 PM .
11-29-2012, 05:54 AM
#4
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Do you mean Windows© Vista ? ?
Cygwin ? Or is it a Linux OS installed inside Windows Vista ?
02-14-2013, 09:48 AM
#5
LQ Newbie
Registered: Nov 2012
Posts: 5
Original Poster
Rep:
No rule to make target /usr/include/C++/4.1.0/list
i am using a windows 7 OS and am using cygwin as compiler
02-14-2013, 12:24 PM
#6
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
# 5
? No usable 'list' header, I think. But list.h .
Ref. gcc-g++-4.1.0.tar.bz2 for Cygwin :
http://artfiles.org/cygwin.org/pub/g...ses/gcc-4.1.0/
$ find libstdc++-v3/ -name list
libstdc++-v3/testsuite/23_containers/list
libstdc++-v3/include/debug/list
$ find libstdc++-v3/ -name list.h
libstdc++-v3/include/backward/list.h
-
02-15-2013, 03:17 AM
#7
LQ Newbie
Registered: Nov 2012
Posts: 5
Original Poster
Rep:
I have downloaded the link below into cygwin
gcc-g++-4.1.0.tar.bz2
I still get the same error No rule to make target /usr/include/C++/4.1.0/list needed by System.o stop
02-17-2013, 08:21 AM
#8
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
# 7 .
May be you will have to edit "System.c" to use list.h ?
All times are GMT -5. The time now is 02:54 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News