User forums > Using Code::Blocks

Error building a WxWidget project

(1/3) > >>

dada:
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

sethjackson:
Remove -Winvalid-pch from your project.

dada:
It is the first thing I tried, but how? I don't find where C:B store this settings.
D.

sethjackson:
Project -> Build options -> Other options tab.

Michael:

--- Quote from: dada on February 14, 2006, 07:22:49 pm ---It is the first thing I tried, but how? I don't find where C:B store this settings.
D.

--- End quote ---

For -Winvalid-pch:


--- Quote ---Project-->Build options-->Compiler-->Other options

--- End quote ---

Michael

Navigation

[0] Message Index

[#] Next page

Go to full version