mimetype error...

This forum can be used to talk about general design strategies, new ideas and questions in general related to wxWidgets. If you feel your questions doesn't fit anywhere, put it here.
Post Reply
mispunt
Experienced Solver
Experienced Solver
Posts: 59
Joined: Tue Oct 19, 2004 3:23 pm
Location: Ede, Holland

mimetype error...

Post by mispunt » Mon Apr 25, 2005 9:55 am

I am converting a program from 2.5.4 (i think it was the latest wx-devcpp) to 2.6.0
I've compiled wx as a single dll.
The problem is that I get an error when compiling the program:

Code: Select all

In file included from main.cpp:1:
C:/Development/MinGW/include/wx/mimetype.h:142: field `m_exts' has incomplete 
   type
C:/Development/MinGW/include/wx/mimetype.h: In member function `const 
   wxArrayString& wxFileTypeInfo::GetExtensions() const':
C:/Development/MinGW/include/wx/mimetype.h:125: `m_exts' undeclared (first use 
   this function)
C:/Development/MinGW/include/wx/mimetype.h:125: (Each undeclared identifier is 
   reported only once for each function it appears in.)
make: *** [.objs/main.o] Error 1
for your knowledge, I need the know the program which is used to open a pdf file. I use mingw to compile and this code the get the program:

Code: Select all

wxFileType *filetype = wxTheMimeTypesManager->GetFileTypeFromExtension(".pdf");
wxString command;
filetype->GetOpenCommand(&command, wxFileType::MessageParameters(filename, wxEmptyString));
wxExecute(command);
Any idea??

Post Reply