Comment #3 on issue 48 by jonathan.brandmeyer: Compile ctemplate with MinGW
GCC 4.4.0
http://code.google.com/p/google-ctemplate/issues/detail?id=48
Older MinGW did not provide either libgcc or libstdc++ as a shared library
and they
forced the use of SJLJ EH. MinGW GCC 4.4 is the first version to support
libstdc++
as a shared library and also supports DWARF2 EH. I personally greatly
prefer to use
the latter, since it makes smaller executables and improves performance
over SJLJ EH.
libsupc++ is normally linked in by default when linking with G++. It is
the GCC C++
support library. However, you run into symbol collisions if you try to
link with
libstdc++.dll and libstdc++.a at the same time, so you have to link with
GCC and
explicitly provide the right libraries.
The script failure was in a state machine generation test. The error spat
out two
identical looking pieces of C source code and then claimed that they didn't
match. I
suspect that this is because of a line ending difference. If one of the
examples was
produced with an Msys utility, and another was produced by a native Windows
program,
then they might have different line endings. Alternatively, if the
reference input
is provided in the tarball, then the line endings in the tarball would
mostly likely
be Unix-style instead of Windows-style.
The intent is not to actually use libctemplate under Msys - I only use Msys
to run
configure. The intent is to build a Windows native DLL for writing native
windows
programs using MinGW's port of GCC.
Thanks for your help.