[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Trouble compiling with wxwindows



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello, 

I am unable to compile programs against wxWindows.  Does anybody have any
advice on what the problem might be?

I have an up to date Sid installation with the following wxWindows related
packages installed:
ii  libwxgtk2.2    2.2.9.2.1      wxWindows Cross-platform C++ GUI toolkit (GT
ii  libwxgtk2.2-de 2.2.9.2.1      wxWindows Cross-platform C++ GUI toolkit (GT
ii  libwxgtk2.2-py 2.2.9.2.1      wxWindows Cross-platform C++ GUI toolkit (wx
ii  wxwin2.2-doc   2.2.9.2.1      wxWindows Cross-platform C++ GUI toolkit (do
ii  wxwin2.2-examp 2.2.9.2.1      wxWindows Cross-platform C++ GUI toolkit (ex
ii  wxwin2.2-heade 2.2.9.2.1      wxWindows Cross-platform C++ GUI toolkit (he

My c++ compiler is g++ 3.2.

Compiling anything, even the examples, error out.  Below is some sample output:

donfede@xwing:/tmp/wxhell$ cp -a /usr/share/doc/wxwin2.2-examples/examples/samples/dialogs/ .
donfede@xwing:/tmp/wxhell$ cd dialogs/
donfede@xwing:/tmp/wxhell/dialogs$ gzip -d *.gz
donfede@xwing:/tmp/wxhell/dialogs$ ls
descrip.mms  dialogs.cpp  dialogs.h  Makefile
m  tips.txt
donfede@xwing:/tmp/wxhell/dialogs$ make
gcc -c `wx-config --cflags` -o dialogs.o dialogs.cpp
gcc -o dialogs dialogs.o `wx-config --libs`
dialogs.o(.text+0xc): In function `wxCreateApp()':
: undefined reference to `operator new(unsigned)'
dialogs.o(.text+0x3f): In function `wxCreateApp()':
: undefined reference to `operator delete(void*)'
dialogs.o(.text+0x64): In function `wxCreateApp()':
: undefined reference to `operator delete(void*)'
dialogs.o(.text+0xa6): In function `main':
: undefined reference to `wxEntry(int, char**)'
dialogs.o(.text+0xf9): In function `MyApp::OnInit()':
: undefined reference to `wxColour::wxColour[in-charge](char const*)'
dialogs.o(.text+0x10c): In function `MyApp::OnInit()':
...


Thank you,
donfede

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE+cWnLx+yU3uQx8M4RAut0AJ0fEtrDam6KxRKJugnOeF1pEFmoCwCePh2V
Pzig2k4bdB8xaHjqgzjl5hE=
=a1W0
-----END PGP SIGNATURE-----



Reply to: