Compile wxWidgets-2.8.8 with DLL

Source: Internet
Author: User
Tags wxwidgets

 

Happy shrimp

Http://blog.csdn.net/lights_joy/

Lights@hb165.com

 

 

This article applies

Visual Studio 2005

WxWidgets-2.8.8

 

 

Reprinted, but keep the author information

 

WxWidgets- 2.8.8 A project file compiled under vc6 is provided. One of the project files is wx_dll.dsw. It looks like a DLL is generated, but in fact this project only generates static Lib. Some modifications are required to convert it into a DLL.

First, change the configuration type of the project to "dynamic library (. dll )".

Add a macro definition to the project options. For example, when compiling a base. dll project, it is defined

Wxmakingdll_base = 1

The core project is defined as follows:

Wxmakingdll_core = 1

If a DLL or EXE project depends on the DLL in the generated wxWidgets library, you need to add a definition:

Wxusingdll

After the configuration type is modified, a linker option is added to the project properties. By default, debugging information is not generated. Therefore, you must manually select "generate debugging information ". In this way, tracing debugging can be performed.

 

 

 

 

 

 

 

 

 

 

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.