Hello,

Due to long build log, I have taken the same issue, but from the ilmbase of OpenExr project:

$ make
Making all in Half
make[1]: Entering directory `/m/Development/Projects/luminance_hdr/deps/ilmbase/
build/Half'
g++ -g -O2     ../../Half/eLut.cpp   -o eLut
./eLut > eLut.h
g++ -g -O2     ../../Half/toFloat.cpp   -o toFloat
./toFloat > toFloat.h
make  all-am
make[2]: Entering directory `/m/Development/Projects/luminance_hdr/deps/ilmbase/
build/Half'
if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../H
alf -I../config -I../../config   -pipe -g -O2  -MT half.lo -MD -MP -MF ".deps/ha
lf.Tpo" -c -o half.lo ../../Half/half.cpp; \
        then mv -f ".deps/half.Tpo" ".deps/half.Plo"; else rm -f ".deps/half.Tpo
"; exit 1; fi
mkdir .libs
 g++ -DHAVE_CONFIG_H -I. -I../../Half -I../config -I../../config -pipe -g -O2 -M
T half.lo -MD -MP -MF .deps/half.Tpo -c ../../Half/half.cpp  -DDLL_EXPORT -DPIC
-o .libs/half.o
 g++ -DHAVE_CONFIG_H -I. -I../../Half -I../config -I../../config -pipe -g -O2 -M
T half.lo -MD -MP -MF .deps/half.Tpo -c ../../Half/half.cpp -o half.o >/dev/null
 2>&1
/bin/sh ../libtool --tag=CXX --mode=link g++ -pipe -g -O2    -o libHalf.la -rpat
h /mingw/lib -version-info 6:0:0 -no-undefined half.lo  -lpthread
g++ -shared -nostdlib m:/development/installed/msys/1.0/mingw/bin/../lib/gcc/min
gw32/4.4.0/../../../dllcrt2.o m:/development/installed/msys/1.0/mingw/bin/../lib
/gcc/mingw32/4.4.0/crtbegin.o  .libs/half.o  -lpthread -Lm:/development/installe
d/msys/1.0/mingw/bin/../lib/gcc/mingw32/4.4.0 -Lm:/development/installed/msys/1.
0/mingw/bin/../lib/gcc -Lm:/development/installed/msys/1.0/mingw/bin/../lib/gcc/
mingw32/4.4.0/../../../../mingw32/lib -Lm:/development/installed/msys/1.0/mingw/
bin/../lib/gcc/mingw32/4.4.0/../../.. /mingw/lib/gcc/mingw32/4.4.0/libstdc++_s.a
 -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt -luser32 -lkernel32 -ladv
api32 -lshell32 -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt m:/develop
ment/installed/msys/1.0/mingw/bin/../lib/gcc/mingw32/4.4.0/crtend.o  -o .libs/li
bHalf-6.dll -Wl,--image-base=0x10000000 -Wl,--out-implib,.libs/libHalf.dll.a
Creating library file: .libs/libHalf.dll.a
.libs/half.o:half.cpp:(.eh_frame+0x11): undefined reference to `__gxx_personalit
y_v0'
collect2: ld returned 1 exit status
make[2]: *** [libHalf.la] Error 1
make[2]: Leaving directory `/m/Development/Projects/luminance_hdr/deps/ilmbase/b
uild/Half'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/m/Development/Projects/luminance_hdr/deps/ilmbase/b
uild/Half'
make: *** [all-recursive] Error 1


From: Greg Chicares <gchicares@sbcglobal.net>
To: MinGW Users List <mingw-users@lists.sourceforge.net>
Sent: Wed, May 26, 2010 2:39:36 PM
Subject: Re: [Mingw-users] MinGW, MSYS and c++/c complier

On 2010-05-26 06:21Z, Dobrescu Mihai wrote:
>
> At make stage, I get
> errors like:
>
> /exiv2/xmpsdk/src/.libs/libxmpsdk.a(WXMPUtils.o):WXMPUtils.cpp:(.text+0x2546): undefined reference to `__cxa_end_catch'
> /exiv2/xmpsdk/src/.libs/libxmpsdk.a(WXMPUtils.o):WXMPUtils.cpp:(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'

It would probably help to show the linker command that fails.
Perhaps the makefile uses 'gcc' as the linker, when it should
use 'g++'; but that's just a wild guess.

The maintainers use MinGW for binary distributions:
  http://www.exiv2.org/download.html
so it might be easiest to ask them how they do it.

------------------------------------------------------------------------------

_______________________________________________
MinGW-users mailing list
MinGW-users@lists.sourceforge.net

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users