Compiling a program error

1999-02-20 Thread Jim Foltz
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   [EMAIL PROTECTED]
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_stringchar, string_char_traitschar, 
__default_alloc_template1, 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


Re: [OFFTOPIC] Compiling a program error

1999-02-20 Thread Patrik Hagglund
The compiler is unable to find __eh_pc used by the file
WindowManager.cpp (?) in the library. You have to debug this
yourself.

--
Patrik Hägglund
 


Re: Compiling a program error

1999-02-20 Thread Patrik Hagglund
Oh, sorry, your problem seams to be an compiler installation
problem.

A search for __eh_pc gives the following URL:
http://www.cygnus.com/ml/egcs/1998-Oct/0119.html with the
following quote:

 My guess is that you're mixing new compilers and old libraries.
 You probably have an old libgcc.a somewhere that it's finding.
 Use gcc -v to see the exact linker line generated so you can see
 the search paths.

--
Patrik Hägglund