Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: dada on February 14, 2006, 06:33:59 pm
-
Hi,
I use the MS VC++ toolkit as builder. wxWidgets is installed with the MS installer in c:\wxWidgets. I try to build the simplest wx app generated by C:B and I get the following
Project : wxWidgets application
Compiler : Microsoft Visual C++ Toolkit 2003 (called directly)
Directory : D:\prove cpp\provaWX\
--------------------------------------------------------------------------------
Switching to target: default
cl : Command line error D2021 : invalid numeric argument '/Winvalid-pch'
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
What's wrong with my try?
Dada
-
Remove -Winvalid-pch from your project.
-
It is the first thing I tried, but how? I don't find where C:B store this settings.
D.
-
Project -> Build options -> Other options tab.
-
It is the first thing I tried, but how? I don't find where C:B store this settings.
D.
For -Winvalid-pch:
Project-->Build options-->Compiler-->Other options
Michael
-
Yes sorry I was not clear. My bad. :P
-
For -Winvalid-pch:
Project-->Build options-->Compiler-->Other options
Ehm... :? I feel stupid but in the Project-->Build options-->Compiler-->Other options there is nothing at all to remove, it is blank.
-
Hmmm could you post the project file? Do you happen to have RC2? If so grab a nightly from here.
http://forums.codeblocks.org/index.php?board=20.0
-
Ehm... :? I feel stupid but in the Project-->Build options-->Compiler-->Other options there is nothing at all to remove, it is blank.
I have these here there:
-pipe
-mthreads
-Winvalid-pch
-include "wx_pch.h"
Michael
-
Do you happen to have RC2?
Most probably... Do you remember that the compiler options used to persist when you changed compilers? The project has the valid Winvalid-pch switch for gcc but is building with the M$ compiler. Switch the compiler of your project back to gcc to see if it appears. If you don't have gcc then you can edit the project file by hand but it's better to...
...grab a nightly from here.
http://forums.codeblocks.org/index.php?board=20.0
-
OK, I've found it. Now, I get other errors, but this is another story. :)
Thank you.
D.
-
Cool no problem. 8) You may want to grab a nightly build though.....
-
You may want to grab a nightly build though.....
...or build C::B from the SVN sources :lol:.
Michael
-
Well he may not want to do that..... That is what I do though. :D
-
Well he may not want to do that..... That is what I do though. :D
Yes, could be :). Using the nightly builds is great, but personally I prefer to build C::B by myself. Useful to learn about C::B :).
Michael