cl.exe and wxUSE_CRASHREPORT
Daniel C. Bastos
dbast0s at yahoo.com.br
Tue Jun 19 20:51:56 PDT 2007
In article <lJUt9B.A.sbD.Zp7dGB at brage.sunsite.dk>,
Vadim Zeitlin wrote:
> DCB> %cl `wx-config --cppflags` hello.cpp
>
> wx-config (generated by configure) doesn't work with MSVC (unless you used
> this compiler with configure and I'm pretty sure this wouldn't have worked).
Why not? The only thing I see that cl doesn't like the -mthreads flag
which is issued by --cxxflags. Here's what I get without wx-config.
%cl.exe -I/usr/local/lib/wx/include/msw-ansi-debug-2.8
-I/usr/local/include/wx- 2.8 -D__WXDEBUG__ -DWXUSINGDLL -D__WXMSW__
-mthreads pinky.cpp
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42
for 80x86 Copyright (C) Microsoft Corporation. All rights reserved.
cl : Command line warning D9002 : ignoring unknown option '-mthreads'
pinky.cpp
c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\xlocale(326) :
warning C4530: C++ exception handler used, but unwind semantics are not
enabled. Specify /EHsc
c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\xlocale(341) :
warning C4530: C++ exception handler used, but unwind semantics are not
enabled. Specify /EHsc
c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\xlocale(358) :
warning C4530: C++ exception handler used, but unwind semantics are not
enabled. Specify /EHsc
c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\istream(1075) :
warning C4530: C++ exception handler used, but unwind semantics are not
enabled. Specify /EHsc
C:/msys/1.0/local/include/wx-2.8\wx/chkconf.h(90) : fatal error C1189:
#error : "wxUSE_CRASHREPORT must be defined."
That is, the same thing.
> Moreover, you must use --cxxflags (C++ flags) and not --cppflags (cpp, i.e.
> C preprocessor, flags).
The difference between the two is the -mthreads flag. Can you explain
what the -mthreads does if you know? Reading
http://ecos.sourceware.org/ml/pthreads-win32/1999/msg00120.html
it seems that EH needs a thread helper. I'll ask that in proper place.
More information about the wx-users
mailing list