[texworks] Help with compilation

Yinhe Zhang crickzhang1 at gmail.com
Tue May 12 02:40:03 CEST 2009

I use TeXworks on Ubuntu 8.04 too. I simply comment out the code line in the
member function ignoreWord in file src/CompletingEdit.cpp which use hunspell
function Hunspell_add(pHunspell, word.data) ( Ubuntu 8.04 now only have
hunspell version 1.1.9, doesn't have this function)

void CompletingEdit::ignoreWord()
    // note that this is not persistent after quitting TW
    QByteArray word =
   // comment out following Hunspell_add because
  // Ubuntu Hardy have only hunspell 1.1.9 which is lower than the
    //(void)Hunspell_add(pHunspell, word.data());
    emit rehighlight();

Then TeXworks compiles OK, and works fine for me, except just without this
little functionality.

Yinhe Zhang

On Mon, Apr 27, 2009 at 3:04 AM, Till Rettig <till.rettig at gmx.de> wrote:

> Hello,
> I am new to this list. First I should say: Thanks for this great editor, it
> is really nice! I was using the Latex-Plugin for Gedit, but with the pdf
> window all the time open it is really nice to work on a document.
> I got the sources some month ago and compiled them succesfully, but with
> the last revision 291 I get always the same mistake:
> g++ -c -pipe -O2 -I/usr/include/hunspell -I/usr/include/poppler/qt4
> -I/usr/include/poppler -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include
> -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I.
> -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui
> -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtXml
> -I/usr/include/qt4/QtDBus -I/usr/include/qt4/QtDBus -I/usr/include/qt4 -Isrc
> -Imoc -Iui -o obj/CompletingEdit.o src/CompletingEdit.cpp
> src/CompletingEdit.cpp: In member function 'void
> CompletingEdit::ignoreWord()':
> src/CompletingEdit.cpp:880: error: 'Hunspell_add' was not declared in this
> scope
> make: *** [obj/CompletingEdit.o] Error 1
> Am I something missing? Are there new dependencies that I didn't catch?
> I am running Ubuntu 8.04 Hardy -- are the qt libraries there too old
> (libqt4-dev_4.3.4)?
> Otherwise can I post feature requests also to this list?
> Greetings
> Till
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/texworks/attachments/20090512/42adcc6c/attachment.html 

More information about the texworks mailing list