[uClibc]Invoking C++, stdexcept

Marc Hoffknecht Hoffknecht at rogers.com
Sun May 18 16:01:54 UTC 2003


Hi everyone,
please answer even if it looks incredibly simple to you - I am stuck here:

I am using the uCLibC root filesystem and have a program written mostly in C syntax with only very few C++ features. One of the files uses exception handling and
#include <stdexcept>
The compiler won't find the file. If I say
#include <c++/stdexcept>
or if I specify -I"/usr/include/c++" I am in even more trouble. What is wrong ? Is my makefile OK (below) ?
Please help !
Marc



EXECUTABLE := Firmware
LIBS := 

# Now alter any implicit rules' variables if you like, e.g.:

CFLAGS := -g -Wall -O3 -march=i486 -DOS_Linux
CXXFLAGS := $(CFLAGS)

RM-F := rm -f

# You shouldn't need to change anything below this point.

SOURCE := $(wildcard *.c) $(wildcard *.cpp)
OBJS := $(patsubst %.c,%.o,$(patsubst %.cpp,%.o,$(SOURCE)))
DEPS := $(patsubst %.o,%.d,$(OBJS))
MISSING_DEPS := $(filter-out $(wildcard $(DEPS)),$(DEPS))
MISSING_DEPS_SOURCES := $(wildcard $(patsubst %.d,%.c,$(MISSING_DEPS)) \
                                   $(patsubst %.d,%.cc,$(MISSING_DEPS)))
CPPFLAGS += -MD

.PHONY : everything deps objs clean veryclean rebuild

everything : $(EXECUTABLE)

deps : $(DEPS)

objs : $(OBJS)

clean :
 @$(RM-F) *.o
 @$(RM-F) *.d

veryclean: clean
 @$(RM-F) $(EXECUTABLE)

rebuild: veryclean everything

ifneq ($(MISSING_DEPS),)
$(MISSING_DEPS) :
 @$(RM-F) $(patsubst %.d,%.o,$@)
endif

-include $(DEPS)

$(EXECUTABLE) : $(OBJS)
         g++ -o $(EXECUTABLE) $(OBJS) $(addprefix -l,$(LIBS))


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/uclibc/attachments/20030518/8d9c5f17/attachment-0001.htm 


More information about the uClibc mailing list