C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

strange compile problem with make

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++)
View previous topic :: View next topic  
Author Message
Billy N. Patton
Guest





PostPosted: Thu Oct 28, 2004 3:44 pm    Post subject: strange compile problem with make Reply with quote




after I run make I get this:
copy.dal.design.ti.com 21 % make
g++ -c -g3 -Wall -Iinclude my_string.cxx
my_string.cxx:2: sstream: No such file or directory


If I copy this g++ line to the command line and execute I don't get any
errors. Everything is ok

From my Makefile
CPP = g++
INC = -Iinclude
CPPFLAGS = -g3 -O2 -Wall $(INC)

OBJ_FILES = $(LIB)(my_string.o)

..SUFFIXES:
..SUFFIXES: .cxx .cpp .c .a

all : $(LIB)
$(addprefix $(OS)/,$(PROGRAMS))

..cxx.a : $(LIB)
$(CPP) -c $(CPPFLAGS) $<
$(AR) $(AR_OPT) $@ $*.o > /dev/null
rm $*.o

$(OS)/% : %.cxx
@if [ ! -d $(OS) ]; then
$(MKDIR) $(OS) ;
fi;
$(CPP) $(CPPFLAGS) $< -o $@ $(OLIBS) $(LIBS)


$(LIB) : $(OBJ_FILES)
$(AR) $(AR_CREATE_OPT) $(LIB)


--
___ _ ____ ___ __ __
/ _ )(_) / /_ __ / _ ___ _/ /_/ /____ ___
/ _ / / / / // / / ___/ _ `/ __/ __/ _ / _
/____/_/_/_/_, / /_/ _,_/__/__/___/_//_/
/___/
Texas Instruments ASIC Circuit Design Methodology Group
Dallas, Texas, 214-480-4455, [email]b-patton (AT) ti (DOT) com[/email]
Back to top
Billy N. Patton
Guest





PostPosted: Thu Oct 28, 2004 8:32 pm    Post subject: Re: strange compile problem with make Reply with quote



Billy N. Patton wrote:
Quote:

after I run make I get this:
copy.dal.design.ti.com 21 % make
g++ -c -g3 -Wall -Iinclude my_string.cxx
my_string.cxx:2: sstream: No such file or directory


If I copy this g++ line to the command line and execute I don't get any
errors. Everything is ok

From my Makefile
CPP = g++
INC = -Iinclude
CPPFLAGS = -g3 -O2 -Wall $(INC)

OBJ_FILES = $(LIB)(my_string.o)

.SUFFIXES:
.SUFFIXES: .cxx .cpp .c .a

all : $(LIB)
$(addprefix $(OS)/,$(PROGRAMS))

.cxx.a : $(LIB)
$(CPP) -c $(CPPFLAGS) $
$(AR) $(AR_OPT) $@ $*.o > /dev/null
rm $*.o

$(OS)/% : %.cxx
@if [ ! -d $(OS) ]; then
$(MKDIR) $(OS) ;
fi;
$(CPP) $(CPPFLAGS) $< -o $@ $(OLIBS) $(LIBS)


$(LIB) : $(OBJ_FILES)
$(AR) $(AR_CREATE_OPT) $(LIB)




Found what the problem was.
On command line I have alias to to g++ 3.4.1
but g++ inside make calls 2.9***

--
___ _ ____ ___ __ __
/ _ )(_) / /_ __ / _ ___ _/ /_/ /____ ___
/ _ / / / / // / / ___/ _ `/ __/ __/ _ / _
/____/_/_/_/_, / /_/ _,_/__/__/___/_//_/
/___/
Texas Instruments ASIC Circuit Design Methodology Group
Dallas, Texas, 214-480-4455, [email]b-patton (AT) ti (DOT) com[/email]

Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.