WxWidgets learning-1-Installation

Source: Internet
Author: User
Tags wxwidgets

1. Extract
2. If the template is used
A) set include/wx/MSW/setup. h and set wxuse_debug_new_always to 0.
B) Set wxuse_iostreamh to 0.
3. Compile
Select use IDE environment, open wxWidgets-2.6.3/build/MSW/wx. DSW menu build with vc6.0-> batch build
Or:
Command Line: in the directory build/MSW
'Nmake-F makefile. VC'
The default setting is used to generate the debug static lib library.
'Nmake-F makefile. VC build = release'
Generate the static lib library of the release library.
For details, see description.
The generated file is in
WxWidgets/lib/
WxWidgets/lib/vc_lib/
WxWidgets/lib/vc_dll/directory
4. Installation
1> set environment variables:
Variable: wxwin
Value: installation path of wxWidgets, for example, C:/wxWidgets/
2> after the Win32 application project is created
2.1 specify the. h header file, lib library file, and source file path (only once, all projects are available)
Tools
Options-> include files
<Wx>/include/
<Wx>/contrib/include/
<Wx>/include/msvc/
Options-> library files
<Wx>/lib/vc_lib/
Options-> library files
<Wx>/src
2.2 add static lib Library
Project Settings
Link-> input-> Object/library modules:
Win32 debug
Wxmsw26d_core.lib wxbase26d. lib wxmongod. lib wxmongod. lib wxpngd. lib wxzlibd. lib wxregexd. lib wxexpatd. lib winmm. lib comctl32.lib rpcrt4.lib wsock32.lib oleacc. lib kernel32.lib user32.lib gdi32.lib winspool. lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib UUID. lib odbc32.lib odbccp32.lib
Win32 release
Export wxbase26.lib wxtiff. Lib wxjpeg. Lib wxpng. Lib wxzlib. Lib wxregex. Lib wxexpat. Lib winmm. Lib comctl32.lib rpcrt4.lib wsock32.lib oleacc. Lib
Odbc32.lib kernel32.lib user32.lib gdi32.lib winspool. Lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib UUID. Lib odbccp32.lib

2.3 Configuration
Project Settings
C/C ++-> Preprocessor definitions:
Win32 debug
Win32; _ debug; _ WINDOWS ;__ windows __;__ wxmsw __;__ wxdebug __; wxdebug = 1 ;__ Win95 __;__ Win32 __; winver = 0x0400; strict
Win32 release
Ndebug, Win32, _ WINDOWS ,__ windows __,__ wxmsw __,__ Win95 __,__ Win32 __, winver = 0x0400, strict

C/C ++-> code generation-> using Runtime Library:
Win32 debug
Debug multithread DLL (/MDD)
Win32 release
Multithread DLL (/MD)

 

 

 

 

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.