cl.exe and wxUSE_CRASHREPORT
Daniel C. Bastos
dbast0s at yahoo.com.br
Wed Jun 20 19:51:34 PDT 2007
In article <-iCMiC.A.2WO.3paeGB at brage.sunsite.dk>,
Vadim Zeitlin wrote:
> On Wed, 20 Jun 2007 18:21:15 -0400 "Daniel C. Bastos" <dbast0s at yahoo.com.br> wrote:
>
> DCB> > To use wx-config with MSVC you need to run configure with MSVC (which
> DCB> > might or not work, being realistic it probably doesn't), not with g++ and
> DCB> > then hope that it's just going magically work with a completely different
> DCB> > compiler.
> DCB>
> DCB> I was expecting it not to work at the linking phase because the
> DCB> libraries were made for g++, but what I fed cl was just source code and
> DCB> paths to include files, no?
>
> No. C++ compiler options are not limited to /D and /I.
Sure, but in the case above they were except for -mthreads which cl said
it was going to ignore. I think that if I learn how to compile a wx
minimal application with cl, I will understand what I don't know right
now; so let me thank you for your attention so far and ask for help on a
more appropriate place. Or would this group be the right place to ask if
someone has compiled a wx application with cl and how?
> DCB> Shouldn't that be just C++?
>
> This has nothing to do with the contents of the source files (which is
> C++, of course) but everything to do with using the compiler with incorrect
> options. Once again, why does it surprise you that can't run MSVC with g++
> options?
Because I ran:
%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
and the only option that cl doesn't understand is -mthreads which it
said it was going to ignore, so I thought that was not a harmful option;
cl understands -I and it understands -D; don't mind my ignorance, but I
thought that if it had any problems, it should have been C++ code; so I
thought of asking here.
> These are completely different programs and while they may do the
> same thing, broadly, their command line options are almost completely
> different.
Right; in general. But I thought that in the particular case above, the
command line options should've been equivalent. There is a section about
compilers in the wx book; I will re-read that section and see if sheds
some light. Thank you for your help.
More information about the wx-users
mailing list