[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Compiling a program error



Hello,

I have attached the output from the make command I get while trying to compile
a program for my programming class. The book is called "c++ Program Design" and
the comes with a simple window library, which the program in question is
linked against.

I think the program compiles, as a .o file is created. The problem occurs
while linking. I emailed the authors with a similar message a week ago, but
I have not recieved a reply from them. 

Any ideas would be appreciated.

-- 
   Jim Foltz   <aa204@acorn.net>
ACORN techie   <http://www.acorn.net>
      AOL/IM   jim_foltz
make lawn
make[1]: Entering directory `/home/jf/src/ezwin2a/chap03/lawn'
g++ -o lawn prog3-5.o -L/usr/X11R6/lib -lX11 -L../../EzWindows/lib -lezwin -lXpm
../../EzWindows/lib/libezwin.a(WindowManager.o): In function `SimpleWindow::SimpleWindow(basic_string<char, string_char_traits<char>, __default_alloc_template<1, 0> > const &, float, float, Position const &)':
WindowManager.o(.text+0x31c): undefined reference to `__eh_pc'
../../EzWindows/lib/libezwin.a(WindowManager.o): In function `SimpleWindow::SimpleWindow(char const *, float, float, Position const &)':
WindowManager.o(.text+0x3e8): undefined reference to `__eh_pc'
../../EzWindows/lib/libezwin.a(WindowManager.o): In function `SimpleWindow::SimpleWindow(SimpleWindow const &)':
WindowManager.o(.text+0x4d4): undefined reference to `__eh_pc'
WindowManager.o(.text+0x4f4): undefined reference to `__eh_pc'
WindowManager.o(.text+0x514): undefined reference to `__eh_pc'
../../EzWindows/lib/libezwin.a(WindowManager.o)(.text+0x534): more undefined references to `__eh_pc' follow
../../EzWindows/lib/libezwin.a(WindowManager.o): In function `release__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b1i03Rep':
WindowManager.o(.gnu.linkonce.t.release__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b1i03Rep+0x13): undefined reference to `__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b1i03RepPv'
../../EzWindows/lib/libezwin.a(WindowManager.o): In function `grab__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b1i03Rep':
WindowManager.o(.gnu.linkonce.t.grab__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b1i03Rep+0xf): undefined reference to `clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b1i03Rep'
../../EzWindows/lib/libezwin.a(rect.o): In function `RectangleShape::RectangleShape(SimpleWindow &, Position const &, color const &, float, float)':
rect.o(.text+0x4d): undefined reference to `__eh_pc'
../../EzWindows/lib/libezwin.a(rect.o): In function `RectangleShape::RectangleShape(SimpleWindow &, float, float, color const &, float, float)':
rect.o(.text+0xf0): undefined reference to `__eh_pc'
rect.o(.text+0x10d): undefined reference to `__eh_pc'
../../EzWindows/lib/libezwin.a(rect.o): In function `RectangleShape::Draw(void)':
rect.o(.text+0x330): undefined reference to `__eh_pc'
rect.o(.text+0x350): undefined reference to `__eh_pc'
../../EzWindows/lib/libezwin.a(rect.o)(.text+0x370): more undefined references to `__eh_pc' follow
collect2: ld returned 1 exit status
make[1]: *** [lawn] Error 1
make[1]: Leaving directory `/home/jf/src/ezwin2a/chap03/lawn'
make: *** [default] Error 2

Reply to: