From: Zorro on
when compile in normal mode (shared) working ok
but when compile it in static mode I get many errors.

I use 2 precompiled files
g++ -c plik.cpp -o plik.o
(compiling good)

but when i compile it
g++ -I. -o program ./obj/plik.o ./obj/plik1.o

I get this ;(
_____
../obj/plik1.o: In function
`__static_initialization_and_destruction_0(int, int)':
plik1.cpp:(.text+0x12e): undefined reference to
`wxEventHashTable::wxEventHashTable(wxEventTable const&)'
plik1.cpp:(.text+0x18d): undefined reference to
`wxEVT_COMMAND_MENU_SELECTED'
plik1.cpp:(.text+0x1d4): undefined reference to
`wxEVT_COMMAND_MENU_SELECTED'
plik1.cpp:(.text+0x21b): undefined reference to
`wxEVT_COMMAND_MENU_SELECTED'
plik1.cpp:(.text+0x262): undefined reference to
`wxEVT_COMMAND_MENU_SELECTED'
plik1.cpp:(.text+0x2a9): undefined reference to `wxEVT_SOCKET'
plik1.cpp:(.text+0x2f0): undefined reference to `wxEVT_NULL'
plik1.cpp:(.text+0x30c): undefined reference to
`wxEventHashTable::wxEventHashTable(wxEventTable const&)'
plik1.cpp:(.text+0x36b): undefined reference to `wxEVT_KEY_DOWN'
plik1.cpp:(.text+0x3b2): undefined reference to `wxEVT_NULL'
[...]
plik.cpp:(.text+0x2f71): undefined reference to `wxString::Printf(char
const*, ...)'
plik.cpp:(.text+0x2f96): undefined reference to `wxString::Printf(char
const*, ...)'
plik.cpp:(.text+0x2fbb): undefined reference to `wxString::Printf(char
const*, ...)'
plik.cpp:(.text+0x2fe0): undefined reference to `wxString::Printf(char
const*, ...)'
plik.cpp:(.text+0x2ffe): undefined reference to `wxString::Printf(char
const*, ...)'
plik.cpp:(.text+0x3020): undefined reference to
`wxSocketClient::wxSocketClient(int)'
../obj/plik.o: In function `wxStringBase::wxStringBase(char const*,
unsigned int)':
plik.cpp:(.text._ZN12wxStringBaseC2EPKcj[wxStringBase::wxStringBase(char
const*, unsigned int)]+0x23): undefined reference to
`wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
../obj/plik.o: In function `wxString::wxString(char const*, wxMBConv
const&, unsigned int)':
plik.cpp:(.text._ZN8wxStringC1EPKcRK8wxMBConvj[wxString::wxString(char
const*, wxMBConv const&, unsigned int)]+0x7): undefined reference to
`wxStringBase::npos'
../obj/plik.o: In function `wxString::Empty()':
plik.cpp:(.text._ZN8wxString5EmptyEv[wxString::Empty()]+0x15): undefined
reference to `wxString::Truncate(unsigned int)'
../obj/plik.o: In function `wxString::Clear()':
plik.cpp:(.text._ZN8wxString5ClearEv[wxString::Clear()]+0x8): undefined
reference to `wxEmptyString'
plik.cpp:(.text._ZN8wxString5ClearEv[wxString::Clear()]+0x29): undefined
reference to `wxStringBase::swap(wxStringBase&)'
../obj/plik.o: In function `wxString::SubString(unsigned int, unsigned
int) const':
plik.cpp:(.text._ZNK8wxString9SubStringEjj[wxString::SubString(unsigned
int, unsigned int) const]+0x2d): undefined reference to
`wxString::Mid(unsigned int, unsigned int) const'
collect2: ld returned 1 exit status