帮忙看看吧

这是wxWidgets论坛的中文版本。在这里,您可以用您的母语汉语讨论上面任一子论坛所涉及的所有关于wxWidgets的话题。欢迎大家参与到对有价值的帖子的中英互译工作中来!
Post Reply
chendongbox
Earned a small fee
Earned a small fee
Posts: 17
Joined: Sun Jan 31, 2010 2:00 pm

帮忙看看吧

Post by chendongbox »

C:\Programme\Widgets\samples\stc>mingw32-make -f makefile.gcc BUILD=debug
mingw32-make[1]: Entering directory `C:/Programme/Widgets/samples/stc'
g++ -o gcc_mswud\stctest.exe gcc_mswud\stctest_sample_rc.o gcc_mswud\stctest_stc
test.o gcc_mswud\stctest_edit.o gcc_mswud\stctest_prefs.o -g -mthreads -L.\..\.
.\lib\gcc_lib -Wl,--subsystem,windows -mwindows -lwxmsw29ud_stc -lwxmsw29ud_
core -lwxbase29ud -lwxscintillad -lwxtiffd -lwxjpegd -lwxpngd -lwxzlibd -lwx
regexud -lwxexpatd -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm
-lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lw
ininet
Info: resolving vtable for __cxxabiv1::__si_class_type_info by linking to __imp_
__ZTVN10__cxxabiv120__si_class_type_infoE (auto-import)
Info: resolving vtable for __cxxabiv1::__vmi_class_type_info by linking to __imp
___ZTVN10__cxxabiv121__vmi_class_type_infoE (auto-import)
Info: resolving vtable for __cxxabiv1::__class_type_info by linking to __imp___Z
TVN10__cxxabiv117__class_type_infoE (auto-import)
Info: resolving typeinfo for std::basic_streambuf<char, std::char_traits<char> >
by linking to __imp___ZTISt15basic_streambufIcSt11char_traitsIcEE (auto-import)

Info: resolving std::cerr by linking to __imp___ZSt4cerr (auto-import)
c:/programme/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe:
warning: auto-importing has been activated without --enable-auto-import specifie
d on the command line.
This should work unless it involves constant data structures referencing symbols
from auto-imported DLLs.
.\..\..\lib\gcc_lib/libwxscintillad.a(wxscintilla_Editor.o):Editor.cxx:(.text$_Z
12wxVectorSortI14SelectionRangeEvR8wxVectorIT_E[void wxVectorSort<SelectionRange
>(wxVector<SelectionRange>&)]+0x3f): undefined reference to `_imp___Z7wxQsortPvj
jPFiPKvS1_S1_ES1_'
.\..\..\lib\gcc_lib/libwxscintillad.a(wxscintilla_Editor.o):Editor.cxx:(.text$_Z
N8wxVectorI14SelectionRangeE2atEj[wxVector<SelectionRange>::at(unsigned int)]+0x
7): undefined reference to `_imp__wxTheAssertHandler'
.\..\..\lib\gcc_lib/libwxscintillad.a(wxscintilla_Editor.o):Editor.cxx:(.text$_Z
N8wxVectorI14SelectionRangeE2atEj[wxVector<SelectionRange>::at(unsigned int)]+0x
43): undefined reference to `_imp___Z10wxOnAssertPKciS0_S0_S0_'
.\..\..\lib\gcc_lib/libwxscintillad.a(wxscintilla_Selection.o):Selection.cxx:(.t
ext$_ZNK8wxVectorI14SelectionRangeE2atEj[wxVector<SelectionRange>::at(unsigned i
nt) const]+0x7): undefined reference to `_imp__wxTheAssertHandler'
.\..\..\lib\gcc_lib/libwxscintillad.a(wxscintilla_Selection.o):Selection.cxx:(.t
ext$_ZNK8wxVectorI14SelectionRangeE2atEj[wxVector<SelectionRange>::at(unsigned i
nt) const]+0x43): undefined reference to `_imp___Z10wxOnAssertPKciS0_S0_S0_'
.\..\..\lib\gcc_lib/libwxscintillad.a(wxscintilla_Selection.o):Selection.cxx:(.t
ext$_ZN8wxVectorI14SelectionRangeE5eraseEPS0_S2_[wxVector<SelectionRange>::erase
(SelectionRange*, SelectionRange*)]+0x18): undefined reference to `_imp__wxTheAs
sertHandler'
.\..\..\lib\gcc_lib/libwxscintillad.a(wxscintilla_Selection.o):Selection.cxx:(.t
ext$_ZN8wxVectorI14SelectionRangeE5eraseEPS0_S2_[wxVector<SelectionRange>::erase
(SelectionRange*, SelectionRange*)]+0x74): undefined reference to `_imp___Z10wxO
nAssertPKciS0_S0_S0_'
.\..\..\lib\gcc_lib/libwxscintillad.a(wxscintilla_Selection.o):Selection.cxx:(.t
ext$_ZN9wxPrivate21wxVectorMemOpsGenericI14SelectionRangeE15MemmoveBackwardEPS1_
S3_j[wxPrivate::wxVectorMemOpsGeneric<SelectionRange>::MemmoveBackward(Selection
Range*, SelectionRange*, unsigned int)]+0xa): undefined reference to `_imp__wxTh
eAssertHandler'
.\..\..\lib\gcc_lib/libwxscintillad.a(wxscintilla_Selection.o):Selection.cxx:(.t
ext$_ZN9wxPrivate21wxVectorMemOpsGenericI14SelectionRangeE15MemmoveBackwardEPS1_
S3_j[wxPrivate::wxVectorMemOpsGeneric<SelectionRange>::MemmoveBackward(Selection
Range*, SelectionRange*, unsigned int)]+0x44): undefined reference to `_imp___Z1
0wxOnAssertPKciS0_S0_S0_'
collect2: ld returned 1 exit status
mingw32-make[1]: *** [gcc_mswud\stctest.exe] Error 1
mingw32-make[1]: Leaving directory `C:/Programme/Widgets/samples/stc'

who can tell me how to solve the problem?
thanks a lot!
DonnyZXT
In need of some credit
In need of some credit
Posts: 7
Joined: Sun Jan 09, 2011 4:03 am
Location: Tianjin, China

Post by DonnyZXT »

我遇到过这种问题,因为你没用DLL方式,用的LIB方式,而且你的.a文件没有加全,你可以在google上搜索变量名,看看它是在哪个.a文件里。大家的代码用的.a文件不全一样,没有办法告诉你应该加哪儿些。
chendongbox
Earned a small fee
Earned a small fee
Posts: 17
Joined: Sun Jan 31, 2010 2:00 pm

Post by chendongbox »

DonnyZXT wrote:我遇到过这种问题,因为你没用DLL方式,用的LIB方式,而且你的.a文件没有加全,你可以在google上搜索变量名,看看它是在哪个.a文件里。大家的代码用的.a文件不全一样,没有办法告诉你应该加哪儿些。
可是我用的是下载的wx2.9.1,编译samples/stc,用的是里面的makefile,没有做什么修改啊?还请赐教。
samsam598
Super wx Problem Solver
Super wx Problem Solver
Posts: 340
Joined: Mon Oct 06, 2008 12:55 pm

Post by samsam598 »

chendongbox wrote:
DonnyZXT wrote:我遇到过这种问题,因为你没用DLL方式,用的LIB方式,而且你的.a文件没有加全,你可以在google上搜索变量名,看看它是在哪个.a文件里。大家的代码用的.a文件不全一样,没有办法告诉你应该加哪儿些。
可是我用的是下载的wx2.9.1,编译samples/stc,用的是里面的makefile,没有做什么修改啊?还请赐教。
你编译wx2.9.1时的完整命令行是什么?另外你可以在C::B中建立一空的WX工程,注意选项要与编译WX时的一致。然后将源文件添加进去编译试试。
Regards,
Sam
-------------------------------------------------------------------
Windows 10 64bit
VS Community 2019
msys2-mingw13.2.0 C::B character set: UTF-8/GBK(Chinese)
wxWidgets 3.3/3.2.4 Unicode Mono Static gcc static build
DonnyZXT
In need of some credit
In need of some credit
Posts: 7
Joined: Sun Jan 09, 2011 4:03 am
Location: Tianjin, China

Post by DonnyZXT »

有些.a文件是在mingw32里边不只是在wxwidgets里边
Post Reply