 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Billy N. Patton Guest
|
Posted: Thu Oct 28, 2004 3:44 pm Post subject: strange compile problem with make |
|
|
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
|
Posted: Thu Oct 28, 2004 8:32 pm Post subject: Re: strange compile problem with make |
|
|
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 |
|
 |
|
|
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
|
|