User forums > Help
GCC options in MSVC templates
(1/1)
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.
--- End quote ---
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.
--- End quote ---
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.
--- End quote ---
Wow, I didn't notice this feature... thanks a lot!
Navigation
[0] Message Index
Go to full version