that'd be possible, what command do you use? I didn't say anything about static libs, so I suppose their shared per default.
This is what I do and the errors I get:
Code: Select all
$ gcc `wx-config --cxxflags --libs` -o minimal.exe minimal.cpp
C:/DOKUME~1/fhd/LOKALE~1/Temp/ccUfbaaa.o(.text+0x20):minimal.cpp: undefined reference to `__gxx_personality_sj0'
C:/DOKUME~1/fhd/LOKALE~1/Temp/ccUfbaaa.o(.text+0x60):minimal.cpp: undefined reference to `wxAppConsole::CheckBuildOptions(char const*, char const*)'
... (the whole output would be too long for one post)
C:/DOKUME~1/fhd/LOKALE~1/Temp/ccUfbaaa.o(.rdata$_ZTI16wxTopLevelWindow[typeinfo for wxTopLevelWindow]+0x0):minimal.cpp: undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
C:/DOKUME~1/fhd/LOKALE~1/Temp/ccUfbaaa.o(.rdata$_ZTI12wxEvtHandler[typeinfo for wxEvtHandler]+0x0):minimal.cpp: undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
C:/DOKUME~1/fhd/LOKALE~1/Temp/ccUfbaaa.o(.rdata$_ZTI19wxTopLevelWindowMSW[typeinfo for wxTopLevelWindowMSW]+0x0):minimal.cpp: more undefined references to `vtable for __cxxabiv1::__si_class_type_info' follow
collect2: ld returned 1 exit status
(
almost unlimited, at least too much for just one post)
Everything seems to be related to wxwidgets.
This is the minimal example, as mentioned before, using the provided makefile it'll compile allright.
I see no need in posting it since it's distributed with wxwidgets-2.6.2 (it's huge), and I have problems do understand what it generally does.