Error : undefined reference to std::terminate()

I am getting an linker error for all the constructors in the derieved
classes. The linker errror is
undefined reference to std::terminate( ). I am not includind iostream.h in
any of the files. Inclusion of this file leads to even more errors. Any help
in this regard is highly appreciated.

Thanks in advance
Shailendra Carpenter

Hi Shailendra,

I am getting an linker error for all the constructors in the derieved
classes. The linker errror is
undefined reference to std::terminate( ). I am not includind iostream.h in
any of the files. Inclusion of this file leads to even more errors. Any help
in this regard is highly appreciated.

Can you post the command line you’re using to compile this application?
I’m interested in how you’re linking against the cpp lib.


Cheers,
-Barry

Hi,

I will show you my make file.

CC=qcc

CFLAGS=

LDFLAGS= -l m -l ph -lphimg -l phexlib

SRC_PATH = .

OBJ_LIST := $(patsubst %.cpp, %.o, $(wildcard $(SRC_PATH)/*.cpp))

SOURCES=COLGraphicsContext.cpp COLFont.cpp COLGraphicBuilder.cpp
COLBitmap.cpp COLGraphicProperties.cpp COLRectangle.cpp main.cpp

OBJECTS=$(SOURCES:.cpp=.o)

EXECUTABLE=execute

all: $(OBJ_LIST) $(EXECUTABLE)


$(EXECUTABLE): $(OBJECTS)

$(CC) $(LDFLAGS) $(OBJECTS) -o $@

$(OBJ_LIST): %.o: %.cpp

$(CC) -c $(CFLAGS) $< -o $@

clean:

rm *.o


Thanks and Regards
Shailendra Carpenter


“Barry” <bbeldam@theusual.qnx.com> wrote in message
news:cmo489$k72$1@inn.qnx.com

Hi Shailendra,

I am getting an linker error for all the constructors in the derieved
classes. The linker errror is
undefined reference to std::terminate( ). I am not includind iostream.h
in
any of the files. Inclusion of this file leads to even more errors. Any
help
in this regard is highly appreciated.

Can you post the command line you’re using to compile this application?
I’m interested in how you’re linking against the cpp lib.


Cheers,
-Barry