/
Inicio :: Foros

 F.A.Q.F.A.Q.                  Conéctese para revisar sus mensajesConéctese para revisar sus mensajes   

wxWidgets con DevCpp

 
      Índice del Foro elrincondelc.com -> Dev-C++
Ver tema anterior :: Ver siguiente tema  
AutorMensaje
julianillog



Registrado: 09 Ago 2007
Mensajes: 1

MensajePublicado: 09/08/2007 1:51 am
Título: wxWidgets con DevCpp

Hola, tengo problemas con las wxWidgets.
Me han dado un código, y tengo que hacerlo funcionar tanto en windows como en linux.
Usa la wxWidets así que lo que he hecho ha sido instalarle a la mi devcpp 4.9.9.2 un devpack de wxWidgets 2.8.4 siguiendo las instrucciones de [1]

En esta página da la opción de descargarse un devpack e indica como configurarlo todo.

Creo un proyecto de ejemplo y funciona bien. Pero cuando compilo el código que me han dado me dan errores al enlazar.

He usado los parámetros que indica en [1] y he añadido algunas librerías más.

FLAGS del compilador: -
Código:
D__WXMSW__ -DNO_GCC_PRAGMA -fno-rtti -fno-exceptions

LINKER FLAGS:
Código:
-s -mwindows -lwx_msw_core-2.8 -lwx_base-2.8 -lwxjpeg-2.8 -lwxpng-2.8 -lwxzlib-2.8 -lwxtiff-2.8 -lwx_msw_adv-2.8
-loleaut32 -lole32 -luuid -lwinspool -lwinmm -lshell32 -lcomctl32
-lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32 -lwx_msw_html-2.8


Al final dice que -libwx_msw_html-2.8.a tiene "undefined references", y esto es algo que no acabo de entender porque en la web oficial (http://www.wxwidgets.org/manuals/stable/wx_librarieslist.html#librarieslist) dice que esta librería requiere sólo wxCore y wxBase. Por eso no encuentro los errores de precedencia.


When it compile, it produces the following log:

Código:
Compilador: Default compiler
Building Makefile: "C:\Documents and Settings\Familia\Escritorio\eiaD\FuzzyN\Makefile.win"
Ejecutando  make...
mingw32-make.exe -f "C:\Documents and Settings\Familia\Escritorio\eiaD\FuzzyN\Makefile.win" all
windres.exe -i FuzzyN_private.rc --input-format=rc -o FuzzyN_private.res -O coff  --include-dir C:/Dev-Cpp/WXWIDG~1.4-M/include

g++.exe caso.o dialogoautodefinirvariable.o dialogocaso.o dialogocolores.o dialogoconfigura.o dialogocopiarnumero.o dialogoestrategia.o dialogoexportar.o dialogoimportar.o dialogointervalo.o dialogolibreria.o dialogomodificador.o dialogonodo.o dialogonumeroeditar.o dialogonumeromostrar.o dialogoordenarcasos.o dialogopropiedades.o dialogoproyecto.o dialogoreporte.o dialogoseleccionarestrategia.o dialogovariable.o diputacion.o estrategia.o fuzzfunc.o fuzznum.o fuzzyvar.o libreria.o listacolores.o listadimensiones.o listafuentes.o listaselecciones.o main.o mi_fstream.o micanvas.o montse.o nodocalculo.o paginacolores.o paginadimensiones.o paginafuentes.o paginalistados.o paginaselecciones.o paginaseleccionesgrilla.o propiedades.o proyecto.o region.o reporte.o reportehtml.o reportelatex.o reportetexto.o FuzzyN_private.res -o "FuzzyN.exe" -L"C:/Dev-Cpp/lib" -L"C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib" -mwindows -s -mwindows -lwx_msw_core-2.8 -lwx_base-2.8 -lwxjpeg-2.8 -lwxpng-2.8 -lwxzlib-2.8 -lwxtiff-2.8 -lwx_msw_adv-2.8 -loleaut32 -lole32 -luuid -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32 -lwx_msw_html-2.8 

C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_helpctrl.o)(.text+0x899):helpctrl.cpp: undefined reference to `wxBusyInfo::wxBusyInfo(wxString const&, wxWindow*)'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_helpctrl.o)(.text+0xa54):helpctrl.cpp: undefined reference to `wxFileSystem::FileNameToURL(wxFileName const&)'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_htmlwin.o)(.text+0x21f8):htmlwin.cpp: undefined reference to `vtable for wxFileSystem'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_htmlwin.o)(.text+0x3e03):htmlwin.cpp: undefined reference to `wxFileSystem::FileNameToURL(wxFileName const&)'

C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_htmlwin.o)(.text+0x4622):htmlwin.cpp: undefined reference to `wxFileSystem::ChangePathTo(wxString const&, bool)'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_htmlwin.o)(.text+0x5473):htmlwin.cpp: undefined reference to `wxFileSystem::FileNameToURL(wxFileName const&)'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_helpwnd.o)(.text+0x990b):helpwnd.cpp: undefined reference to `wxSplitterWindow::Unsplit(wxWindow*)'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_helpwnd.o)(.text+0xbb2a):helpwnd.cpp: undefined reference to `wxProgressDialog::~wxProgressDialog()'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_helpwnd.o)(.text+0xc208):helpwnd.cpp: undefined reference to `wxProgressDialog::wxProgressDialog(wxString const&, wxString const&, int, wxWindow*, int)'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_helpwnd.o)(.text+0xc2d0):helpwnd.cpp: undefined reference to `wxProgressDialog::Update(int, wxString const&, bool*)'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_helpwnd.o)(.text+0xc39c):helpwnd.cpp: undefined reference to `wxProgressDialog::Update(int, wxString const&, bool*)'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_helpwnd.o)(.text+0xc4ee):helpwnd.cpp: undefined reference to `wxProgressDialog::~wxProgressDialog()'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_helpwnd.o)(.text+0xcfc5):helpwnd.cpp: undefined reference to `vtable for wxSplitterWindow'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_helpwnd.o)(.text+0xd028):helpwnd.cpp: undefined reference to `wxSplitterWindow::Init()'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_helpwnd.o)(.text+0xd065):helpwnd.cpp: undefined reference to `wxSplitterWindow::Create(wxWindow*, int, wxPoint const&, wxSize const&, long, wxString const&)'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_helpwnd.o)(.text+0xe1cc):helpwnd.cpp: undefined reference to `wxSplitterWindow::UpdateSize()'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_helpwnd.o)(.text+0xecf3):helpwnd.cpp: undefined reference to `wxSplitterWindow::SetMinimumPaneSize(int)'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_helpwnd.o)(.text+0xed56):helpwnd.cpp: undefined reference to `wxSplitterWindow::Initialize(wxWindow*)'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_helpdata.o)(.text+0x31e4):helpdata.cpp: undefined reference to `wxFileSystem::OpenFile(wxString const&, int)'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_helpdata.o)(.text+0x32f2):helpdata.cpp: undefined reference to `wxFileSystem::OpenFile(wxString const&, int)'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_helpdata.o)(.text+0x4406):helpdata.cpp: undefined reference to `vtable for wxFileSystem'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_helpdata.o)(.text+0x4795):helpdata.cpp: undefined reference to `wxFileSystem::OpenFile(wxString const&, int)'

C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_helpdata.o)(.text+0x48d6):helpdata.cpp: undefined reference to `wxFileSystem::OpenFile(wxString const&, int)'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_helpdata.o)(.text+0x4c56):helpdata.cpp: undefined reference to `wxFileSystem::~wxFileSystem()'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_helpdata.o)(.text+0x4ca4):helpdata.cpp: undefined reference to `wxFileSystem::ChangePathTo(wxString const&, bool)'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_helpdata.o)(.text+0x4f77):helpdata.cpp: undefined reference to `wxFileSystem::~wxFileSystem()'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_helpdata.o)(.text+0x5744):helpdata.cpp: undefined reference to `vtable for wxFileSystem'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_helpdata.o)(.text+0x57ef):helpdata.cpp: undefined reference to `wxFileSystem::FindFirst(wxString const&, int)'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_helpdata.o)(.text+0x5894):helpdata.cpp: undefined reference to `wxFileSystem::~wxFileSystem()'

C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_helpdata.o)(.text+0x5b71):helpdata.cpp: undefined reference to `wxFileSystem::~wxFileSystem()'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_helpdata.o)(.text+0x5c79):helpdata.cpp: undefined reference to `vtable for wxFileSystem'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_helpdata.o)(.text+0x5e38):helpdata.cpp: undefined reference to `wxFileSystem::OpenFile(wxString const&, int)'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_helpdata.o)(.text+0x5e6f):helpdata.cpp: undefined reference to `wxFileSystem::ChangePathTo(wxString const&, bool)'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_helpdata.o)(.text+0x612d):helpdata.cpp: undefined reference to `wxFileSystem::FindNext()'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_helpdata.o)(.text+0x63e4):helpdata.cpp: undefined reference to `wxFileSystem::~wxFileSystem()'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_helpdata.o)(.text+0x675a):helpdata.cpp: undefined reference to `wxFileSystem::~wxFileSystem()'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_helpdata.o)(.text+0x6942):helpdata.cpp: undefined reference to `vtable for wxFileSystem'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_helpdata.o)(.text+0x6a07):helpdata.cpp: undefined reference to `wxFileSystem::OpenFile(wxString const&, int)'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_helpdata.o)(.text+0x6abf):helpdata.cpp: undefined reference to `wxFileSystem::~wxFileSystem()'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_helpdata.o)(.text+0x6ebd):helpdata.cpp: undefined reference to `wxFileSystem::~wxFileSystem()'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_helpdata.o)(.text+0x839b):helpdata.cpp: undefined reference to `wxFileSystem::~wxFileSystem()'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_helpdata.o)(.text+0x849c):helpdata.cpp: undefined reference to `vtable for wxFileSystem'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_helpdata.o)(.text+0x853d):helpdata.cpp: undefined reference to `wxFileSystem::OpenFile(wxString const&, int)'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_helpdata.o)(.text+0x8634):helpdata.cpp: undefined reference to `wxFileSystem::~wxFileSystem()'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_htmlpars.o)(.text+0x380f):htmlpars.cpp: undefined reference to `wxFileSystem::OpenFile(wxString const&, int)'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_winpars.o)(.text+0x18af):winpars.cpp: undefined reference to `wxFileSystem::OpenFile(wxString const&, int)'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_htmprint.o)(.text+0xbd):htmprint.cpp: undefined reference to `vtable for wxFileSystem'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_htmprint.o)(.text+0x2cd):htmprint.cpp: undefined reference to `vtable for wxFileSystem'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_htmprint.o)(.text+0x810):htmprint.cpp: undefined reference to `wxFileSystem::ChangePathTo(wxString const&, bool)'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_htmprint.o)(.text+0x1ff7):htmprint.cpp: undefined reference to `vtable for wxFileSystem'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_htmprint.o)(.text+0x20c7):htmprint.cpp: undefined reference to `wxFileSystem::FileNameToURL(wxFileName const&)'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_htmprint.o)(.text+0x20f0):htmprint.cpp: undefined reference to `wxFileSystem::OpenFile(wxString const&, int)'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_htmprint.o)(.text+0x2300):htmprint.cpp: undefined reference to `wxFileSystem::~wxFileSystem()'

C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_htmprint.o)(.text+0x241b):htmprint.cpp: undefined reference to `wxFileSystem::~wxFileSystem()'
C:/Dev-Cpp/wxWidgets-2.8.4-msw-static/lib/libwx_msw_html-2.8.a(htmllib_htmprint.o)(.text+0x2543):htmprint.cpp: undefined reference to `wxFileSystem::OpenFile(wxString const&, int)'
collect2: ld returned 1 exit status

mingw32-make.exe: *** [FuzzyN.exe] Error 1

Ejecución Terminada


-------------------------------------------------

Al principio tenía los mismos problemas en otras librerías, pero los solucioné añadiendo linker flags.

También he intentado añadir a los flags el resto de librerías antes de wxHTML, pero siguen saliendo los mismos errores.

Código:
-s -mwindows -lwx_msw_core-2.8 -lwx_base-2.8 -lwxjpeg-2.8 -lwxpng-2.8 -lwxzlib-2.8 -lwxtiff-2.8 -lwx_msw_adv-2.8 -lrpcrt4 -loleaut32 -lole32 -luuid -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32 -lwx_base_odbc-2.8 -lwx_msw_dbgrid-2.8 -lwx_base_net-2.8 -lwx_msw_gl-2.8 -lwx_base_xml-2.8 -lwx_msw_qa-2.8 -lwx_msw_xrc-2.8 -lwx_msw_aui-2.8 -lwx_msw_richtext-2.8 -lwxexpat-2.8 -lwxregex-2.8 -lwx_msw_html-2.8


¿¿Alguna sugerencia??
¿Creeis que el problema está en el orden de los flags?
o tal vez será por la compilación que hay hecha de la wxWidgets.
Según dice en [1] se ha compilado con las siguientes opciones:

../configure -q --with-msw --disable-debug --disable-debug_gdb --disable-shared
--disable-compat24 --with-odbc --with-opengl

Configured wxWidgets 2.8.0 for `i686-pc-mingw32'

Which GUI toolkit should wxWidgets use? msw
Should wxWidgets be compiled into single library? no
Should wxWidgets be compiled in debug mode? no
Should wxWidgets be linked as a shared library? no
Should wxWidgets be compiled in Unicode mode? no
What level of wxWidgets compatibility should be enabled?
wxWidgets 2.4 no
wxWidgets 2.6 yes
Which libraries should wxWidgets use?
jpeg builtin
png builtin
regex builtin
tiff builtin
zlib builtin
odbc yes
expat builtin
libmspack no
sdl no

Se me está llendo la cabeza sin saber que hacerle.
Volver arriba
      Índice del Foro elrincondelc.com -> Dev-C++
Página 1 de 1Todas las horas están en GMT - 8 Horas

 
No puede crear mensajes
No puede responder temas
No puede editar sus mensajes
No puede borrar sus mensajes
No puede votar en encuestas

(c) ElRincondelC.com

Un proyecto de UrlanHeat.com