News:

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

Main Menu

GCC options in MSVC templates

Started by Commodore64, February 02, 2006, 09:38:59 AM

Previous topic - Next topic

Commodore64

Hi, and congrats for your wonderful IDE.

I'm having a problem with project templates. I'm using nightly builds of C::B (it doesn't matter which one, my problem is persistent), MS Visual C++ toolkit 2003 as my default compiler.

When I create a new wxWidgets project (or a wxSmith project), the build options for that project get filled in with options that make sense only for GCC, like "-pipe -mthreads -Winvalid-pch -include "wx_pch.h" -D__GNUWIN32__ -D__WXMSW__ -DwxUSE_UNICODE -DUSE_PCH", many included libraries, etc.

Obviously, MSVC complains about that!

In order to be able to compile, I had to store my wxWidgets specific settings in the global compiler options, and delete all the project options every time I create a new project.

tiwag


1. at the moment, the new wxWidgets projects are set up for gcc only, as you already discovered.

2.
Quote from: Commodore64 on February 02, 2006, 09:38:59 AM
... I had to store my wxWidgets specific settings in the global compiler options, and delete all the project options every time I create a new project.
don't edit the global compiler settings,
edit the project settings to your needs and save this project (once it's setup properly for your compiler) as user-template,
which you can use the next time to create a new project.

Commodore64

Quote from: tiwag on February 02, 2006, 11:46:05 AM
1. at the moment, the new wxWidgets projects are set up for gcc only, as you already discovered.
Glad to see you're aware of this  :wink:

Quote from: tiwag on February 02, 2006, 11:46:05 AM
2.
don't edit the global compiler settings,
edit the project settings to your needs and save this project (once it's setup properly for your compiler) as user-template,
which you can use the next time to create a new project.
Wow, I didn't notice this feature... thanks a lot!