-pipe
-mthreads
[[if (PLATFORM == PLATFORM_MSW && (GetCompilerFactory().GetCompilerVersionString(_T("gcc")) >= _T("4.0.0"))) print(_T("-Wno-attributes"));]]
__GNUWIN32__
__WXMSW__
WXUSINGDLL
wxUSE_UNICODE
I found it is very complicated to transfer projects between platforms.
I list the steps below how I transfer a "Hello World" wxWidgets project from Linux to Windows XP
1. Project->Properties->libraries tab; select Cross-Platform |_wx:wxWidgets; click < button; uncheck Don't setup automatically check box
2. Project->Build options->Complier setting->Other options tab; add followingCode3.Project->Build options->Complier setting->#Defines tab; add following-pipe
-mthreads
[[if (PLATFORM == PLATFORM_MSW && (GetCompilerFactory().GetCompilerVersionString(_T("gcc")) >= _T("4.0.0"))) print(_T("-Wno-attributes"));]]Code__GNUWIN32__
__WXMSW__
WXUSINGDLL
wxUSE_UNICODE
Is there a easier way?
Now to make your projects cross-platform:
1) Create project using wizard
2) Remove ALL compiler/linker options related to wxWidgets from project configuartion (and optionally move them to lib_finder's database)
3) in Project->Properties->libraries add wxWidgets library and uncheck "Don't setup automatically"
Thanks byo. :D :D
I'm using C:B 8.02 release.But where I can optionally move the ALL compiler/linker options to Lib_Finder?
Yes, Lib_finder works. Just remove all compile and link options and use Lib_finer.Thanks byo. :D :D
I'm using C:B 8.02 release.But where I can optionally move the ALL compiler/linker options to Lib_Finder?
First try to detect library settings through Plugins->Library Finder menu - if you choose this option (in 8.02) you will see window where you can enter directories where it should look for wxWidgets (but from what you've written before I guess you already did such detection).
If that won't work, you'll have to download latest nightly build (http://forums.codeblocks.org/index.php/topic,8581.0.html) and when you do that, under the Plugins->Library Finder menu you'll have the editor of lib_finder's database.
Regards
BYO