[Gpg4win-devel] adding libetpan to gpg4win
DINH Viêt Hoà
dinh.viet.hoa at free.fr
Sat Oct 27 01:33:54 CEST 2007
On 10/26/07, Marcus Brinkmann <marcus.brinkmann at ruhr-uni-bochum.de> wrote:
> At Fri, 26 Oct 2007 18:41:32 +0200,
> Marcus Brinkmann wrote:
> > What is missing is support for VPATH builds (useful for gpg4win) and
> > DLLs (currently only a static library is built), so that is what I am
> > working on now.
>
> Building a DLL does not work, I get:
>
> i586-mingw32msvc-gcc -shared .libs/libetpan-0.dll.def .libs/versioninfo.o -Wl,--whole-archive data-types/.libs/libdata-types.a low-level/.libs/liblow-level.a driver/.libs/libdriver.a main/.libs/libmain.a engine/.libs/libengine.a windows/.libs/libarch.a -Wl,--no-whole-archive -L/home/marcus/g10/wald/gpg4win-w/src/playground/install/lib -lws2_32 -lpthreadGC2 -mms-bitfields -o .libs/libetpan-0.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/libetpan.dll.a
> Creating library file: .libs/libetpan.dll.a
> windows/.libs/libarch.a(wsocket.o): In function `_Z41__static_initialization_and_destruction_0ii':/home/marcus/g10/projects/gpg4win-2/libetpan/cvs/libetpan-cvs-new4/src/windows/wsocket.cpp:21: undefined reference to `___cxa_allocate_exception'
> :/home/marcus/g10/projects/gpg4win-2/libetpan/cvs/libetpan-cvs-new4/src/windows/wsocket.cpp:21: undefined reference to `typeinfo for char const*'
> :/home/marcus/g10/projects/gpg4win-2/libetpan/cvs/libetpan-cvs-new4/src/windows/wsocket.cpp:21: undefined reference to `___cxa_throw'
> collect2: ld returned 1 exit status
> make[2]: *** [libetpan.la] Error 1
>
> Anybody has any idea? I am probably missing some runtime library or such.
I think you have to link with the C++ runtime.
Unfortunately wsocket.cpp is C++.
Maybe for that part of the code you have to build with g++ and link
the final library with g++ ?
Regards,
--
DINH Viêt Hoà
More information about the Gpg4win-devel
mailing list