wxProgressDialog issues
Elden Armbrust
earmbrust at gmail.com
Tue Nov 14 23:51:31 PST 2006
I'm having some problems with wxWidgets, specifically wxProgressDialog in particular.
I will happily share any information I can about the problem, but I've tried to include
as much here as possible.
wxWidgets (2.6.3) configure line:
./configure --prefix=/usr --with-libpng --with-libjpeg --with-libtiff --enable-progressbar --enable-menus --with-sdl --with-x11
my programs contents:
#include "wx/wx.h"
int main(int argc, char** argv) {
wxProgressDialog progressDlg;
progressDlg = new wxProgressDialog(_("Please wait"), _("Scanning"), 0, this, wxPD_APP_MODAL | wxPD_CAN_ABORT);
}
my programs (xcp.cpp) compile line:
`wx-config --cxx` xcp.cpp `wx-config --libs --cxxflags` -o xcp
my programs (xcp) compile output:
xcp.cpp: In function 'int main(int, char**)':
xcp.cpp:4: error: 'wxProgressDialog' was not declared in this scope
xcp.cpp:4: error: expected `;' before 'progressDlg'
xcp.cpp:5: error: 'progressDlg' was not declared in this scope
xcp.cpp:5: error: expected type-specifier before 'wxProgressDialog'
xcp.cpp:5: error: expected `;' before 'wxProgressDialog'
I can't figure out why I'm getting the error. As far as I know, I shouldn't be.
Hopefully someone knows why this is happening.
More information about the wx-users
mailing list