My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 6: ld: cannot find -lwxmsw28u_core
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by hongwenjun, Jan 28, 2010
wx 最简单的对话框GUI Welcome to wxWidgets
不能链接,如果 改成中文,编译错误
-------------- 构建: Release in zz ---------------

正在编译: zzApp.cpp
正在编译: zzMain.cpp
正在编译: resource.rc
正在链接 可执行: bin\Release\zz.exe
ld: cannot find -lwxmsw28u_core
过程结束,其状态为 1 (0 分钟, 3 秒)
1 个错误, 0 个警告-------------- 构建: Release in zz ---------------

正在编译: zzMain.cpp
E:\Test\zz\zzMain.cpp: In constructor 'zzDialog::zzDialog(wxWindow*, 
wxWindowID)':
E:\Test\zz\zzMain.cpp:63: error: converting to execution character set: 
Illegal byte sequence



 

Jan 30, 2010
#1 hongwenjun
使用自己编译的的链接库 问题解决了


自己分别编译两份完整的 wxWidgets-2.8.10 发行版链接库
SHARED ?= 0  静态链接(发行版)
SHARED ?= 1  动态链接(发行版)


开源Code::Blocks.IDE便携版.◇.SVN6113 (LoveDEV_r6113.exe)
gcc (QP mingw32) 4.4.3    适用的 wxWidgets-2.8.10 发行版链接库



wxMSW-2.8.10-Setup.exe  网上下载安装d盘

D:\wxWidgets-2.8.10\build\msw>mingw32-make.exe -f makefile.gcc
分别编译 静态和动态的两份。




D:\wxWidgets-2.8.10\build\msw\config.gcc    主要参数内容
-------------------------------------------------------------------------------------
-----
# =========================================================================
#     This configuration file was generated by
#     Bakefile 0.2.5 (http://www.bakefile.org)
#     Beware that all changes made to this file will be overwritten next
#     time you run Bakefile!
# =========================================================================


# -------------------------------------------------------------------------
# These are configurable options:
# -------------------------------------------------------------------------

# Compiler flags to link shared library 
LINK_DLL_FLAGS ?= -shared

# Compiler flags to link loadable module 
LINK_MODULE_FLAGS ?= -shared

# C compiler 
CC = gcc

# C++ compiler 
CXX = g++

# Standard flags for CC 
CFLAGS ?= 

# Standard flags for C++ 
CXXFLAGS ?= 

# Standard preprocessor flags (common for CC and CXX) 
CPPFLAGS ?= 

# Standard linker flags 
LDFLAGS ?= 

# The C preprocessor 
CPP ?= $(CC) -E

# What type of library to build? [0,1]
SHARED ?= 0

# Build wxUniversal instead of native port? [0,1]
WXUNIV ?= 0

# Compile Unicode build of wxWidgets? [0,1]
UNICODE ?= 1

# Use MSLU library when building Unicode version. [0,1]
MSLU ?= 0

# Type of compiled binaries [debug,release]
BUILD ?= release

# Should debugging info be included in the executables? The default value
# "default" means that debug info will be included if BUILD=debug
# and not included if BUILD=release. [0,1,default]
DEBUG_INFO ?= default

# Should __WXDEBUG__ be defined? The default value "default" means that it will
# be defined if BUILD=debug and not defined if BUILD=release. [0,1,default]
DEBUG_FLAG ?= default

# Multiple libraries or single huge monolithic one? [0,1]
MONOLITHIC ?= 0

# Build GUI libraries? [0,1]
USE_GUI ?= 1

# Build wxHTML library (USE_GUI must be 1)? [0,1]
USE_HTML ?= 1

# Build multimedia library (USE_GUI must be 1)? [0,1]
USE_MEDIA ?= 1

# Build wxXRC library (USE_GUI must be 1)? [0,1]
USE_XRC ?= 1

# Build wxAUI library (USE_GUI must be 1)? [0,1]
USE_AUI ?= 1

# Build wxRichTextCtrl library (USE_GUI must be 1)? [0,1]
USE_RICHTEXT ?= 1

# Build OpenGL canvas library (USE_GUI must be 1)? [0,1]
USE_OPENGL ?= 0

# Build ODBC database classes (USE_GUI must be 1)? [0,1]
USE_ODBC ?= 0

# Build quality assurance classes library (USE_GUI must be 1)? [0,1]
USE_QA ?= 0

# Enable exceptions in compiled code. [0,1]
USE_EXCEPTIONS ?= 1

# Enable run-time type information (RTTI) in compiled code. [0,1]
USE_RTTI ?= 1

# Enable threading in compiled code. [0,1]
USE_THREADS ?= 1

# Link with gdiplus.lib? (Needed for wxGraphicsContext, will also set 
wxUSE_GRAPHICS_CONTEXT) [0,1]
USE_GDIPLUS ?= 0

# Is this official build by wxWidgets developers? [0,1]
OFFICIAL_BUILD ?= 1

# Use this to name your customized DLLs differently 
VENDOR ?=

#  
WX_FLAVOUR ?= 

#  
WX_LIB_FLAVOUR ?= 

# Name of your custom configuration. This affects directory
# where object files are stored as well as the location of
# compiled .lib files and setup.h under the lib/ toplevel directory. 
CFG ?= 

# Compiler flags needed to compile test suite in tests directory. If you want
# to run the tests, set it so that the compiler can find CppUnit headers. 
CPPUNIT_CFLAGS ?= 

# Linker flags needed to link test suite in tests directory. If you want
# to run the tests, include CppUnit library here. 
CPPUNIT_LIBS ?= 

# Version of C runtime library to use. You can change this to
# static if SHARED=0, but it is highly recommended to not do
# it if SHARED=1 unless you know what you are doing. [dynamic,static]
RUNTIME_LIBS ?= static

# Set the version of your Mingw installation here.
#     "3" ...... this is for Mingw 2.0 or newer (comes with gcc3)
#     "2.95" ... for Mingw 1.1 or any of the older versions [3,2.95]
GCC_VERSION ?= 4.4.3


wxWidgets-2.8.10forGcc4.4.3.7z
6.0 MB   Download
Jan 30, 2010
#2 hongwenjun
wxWidgets-2.8.10forGcc4.4.3.7z 
6.0 MB  我把自己编译的wxWidgets-2.8.10 发行版链接库打包上来了,
调试版链接库,文件太大,就不来编译了
Feb 4, 2010
Project Member #3 loaden@gmail.com
GCC_VERSION ?= 4.4.3
这个是没有必要修改的。
选3就可以了。

Powered by Google Project Hosting