[uClibc]Newbie Question: unable to compile c++ program

Edwin Ho hoedwinx at i-cable.com
Thu Mar 20 17:54:09 UTC 2003

Hi everybody,

I am trying to cross-compile the standard Hello World c++ program for an 
ARM7TDMI but failed with a

test0.cpp:1: iostream: No such file or directory

I am able to compile C programs correctly, could it be a problem with my 
uclibc installation? Thanks in advance for any suggestion!

Edwin Ho

here is my makefile (I also tried with no load library options)


LD_WARNING = -W1,-warn-common
LDFLAGS += --static


CFLAGS += -Os -fstrict-aliasing

CROSS = /usr/arm-linux-uclibc-3.2/bin/arm-uclibc-

CC = $(CROSS)g++
AR = $(CROSS)ar
STRIP = $(CROSS)strip

hello: $(OBJECTS) $(CC)$(LDFLAGS) -o hello $(OBJECTS) -lstdc++ -lm -lgcc_s

test0.o: test0.cpp $(CC) $(CFLAGS) -c test0.cpp 

More information about the uClibc mailing list