Why can I not use the class in $OPIEDIR/include/opie2/o* ?

Florian Erfurth <[email protected]>
Newsgroups gmane.comp.handhelds.opie.devel
Message-ID <[email protected]>
Hi, I'll pull out all of my hairs. :(

Yesterday I did try to use OFileDialog (with #include <opie2/ofiledialog.h>.
Today I did try to use OProcess (with #include <opie2/oprocess.h>.

Both didn't work because the compiler tells me the that OFileDialog 
(resp. OProcess) is undeclared. Why the hell???

The error message after enter make:
 >>>
g++ -c -pipe  -DQWS -fno-exceptions -fno-rtti  -Wall -W  -O2  
-DOPIE_NO_DEBUG -DOPIE_NO_BUILTIN_SHUTDOWN -DUSE_FILE_NOTIFICATION 
-DOPIE_SOUND_FRAGMENT_SHIFT=16 -DQT_NO_DEBUG 
-I/home/floh/qt-embedded/opie/mkspecs/qws/linux-x86-g++ -I. 
-I/home/floh/qt-embedded/opie/include 
-I/home/floh/qt-embedded/qt-2.3.10/include -I.moc/x86-linux/ -o 
.obj/x86-linux/speech2textImpl.o speech2textImpl.cpp
speech2textImpl.cpp: In member function `virtual void 
speech2textImpl::polish()
   ':
speech2textImpl.cpp:10: error: `OProcess' undeclared (first use this 
function)
speech2textImpl.cpp:10: error: (Each undeclared identifier is reported only
   once for each function it appears in.)
speech2textImpl.cpp:10: error: `myproc' undeclared (first use this function)
speech2textImpl.cpp:10: error: Fehler beim Parsen before `;' token
make: *** [.obj/x86-linux/speech2textImpl.o] Fehler 1
<<<

Could anyone of you tell me, if you ever had success using OFileDialog 
(resp. OProcess)???

I really really really need this OProcess (or QProcess, it doesn't 
matters which of both I'd use).

cu Floh

_______________________________________________

http://opie.handhelds.org/cgi-bin/moin.cgi/DeveloperWikiIndex

Opie-devel mailing list
[email protected]
https://handhelds.org/mailman/listinfo/opie-devel
speech2textImpl.cpp (text/plain, 347 B)
#include "speech2textImpl.h"
#include <qapplication.h>
#include <qstring.h>
#include <opie2/oprocess.h>
//#include <opie/ofiledialog.h>

void speech2textImpl::polish()
{
	OProcess *myproc = new OProcess;
}

void speech2textImpl::SaveText_slot()
{

//	QString fileName = OFileDialog::getSaveFileName( "newfile.txt", "Textfiles (*.txt)", this );

}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.