Hi all!
I met such a problem: I've been building MinGW with --disable-shared, and
everything went well untill I understood that exceptions from DLL aren't
catched in the main program.
Example. The program terminates with message: terminate called after
throwing an instance of 'int
DLL:
void func() {throw 1;}
MAIN:
void func();
int main() {
try {
func();
} catch ( ... ) {
}
}
If the implementation of the func() is in the static library - it works
fine.
I rebuilt MinGW with --enable-shared --enable-static. It solved the problem
above. But another problem appeared.
When using std::mutex or std::thread or anything from stdthreads, the
program terminates with exception of type std::system_error. (I can't
specify exactly because I've already deleted that build)
MinGW configured with:
../gcc-4.6.2/configure \
--prefix=/mingw \
--host=i686-pc-mingw32 \
--build=i686-pc-mingw32 \
--target=i686-pc-mingw32 \
--enable-languages=c,c++ \
--with-tune=generic \
--with-host-libstdcxx=-lstdc++ \
--enable-shared \
--enable-static \
--enable-libgomp \
--enable-lto \
--enable-cloog-backend=isl \
--enable-checking=release \
--enable-fully-dynamic-string \
--enable-threads=posix \
--disable-libstdcxx-pch \
--enable-libstdcxx-debug \
--disable-bootstrap \
--enable-sjlj-exceptions \
--disable-win32-registry \
--disable-nls \
--disable-werror \
--with-gmp=/libs \
--with-mpfr=/libs \
--with-mpc=/libs \
--with-ppl=/libs \
--with-cloog=/libs \
--with-libiconv-prefix=/libs \
--with-libexpat-prefix=/libs
Thread model: posix
gcc version 4.6.2 (prerelease)
Patch from:
http://sourceforge.net/projects/mingw-w64/files/Toolchain%20sources/Personal%20Builds/rubenvb/gcc-4.6.2-stdthread_rubenvb.tar.lzma/download
- is applyed.
Any ideas?
Thanks.
niXman.
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public