News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Error building a WxWidget project

Started by dada, February 14, 2006, 06:33:59 PM

Previous topic - Next topic

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.

For -Winvalid-pch:

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

Michael
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]

sethjackson


dada

For -Winvalid-pch:

Quote
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.

sethjackson

Hmmm could you post the project file? Do you happen to have RC2? If so grab a nightly from here.

http://forums.next.codeblocks.org/index.php?board=20.0

Michael

Quote from: dada on February 14, 2006, 07:46:01 PM
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:

Quote
-pipe
-mthreads
-Winvalid-pch
-include "wx_pch.h"

Michael
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]

yop

Quote from: sethjackson on February 14, 2006, 07:48:46 PMDo 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...
Quote from: sethjackson on February 14, 2006, 07:48:46 PM...grab a nightly from here.
http://forums.next.codeblocks.org/index.php?board=20.0
Life would be so much easier if we could just look at the source code.

dada

OK, I've found it. Now, I get other errors, but this is another story. :)
Thank you.
D.

sethjackson

Cool no problem.  8) You may want to grab a nightly build though.....

Michael

Quote from: sethjackson on February 14, 2006, 08:05:49 PM
You may want to grab a nightly build though.....

...or build C::B from the SVN sources :lol:.

Michael
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]

sethjackson

Well he may not want to do that..... That is what I do though.  :D

Michael

Quote from: sethjackson on February 14, 2006, 08:15:11 PM
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
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]