pspell_checker.cpp:53: warning: invalid conversion from `const char*' to `char*

From: Gansser, Martin (MGansser@rand.de)
Date: Wed Aug 21 2002 - 06:59:58 EDT

  • Next message: F J Franklin: "Re: pspell_checker.cpp:53: warning: invalid conversion from `const char*' to `char*"

    Hi,

    I get the following compilation errors on hp-ux 11.00:

    ...
    g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAG
    E_BUGREPORT=\"\" -DPACKAGE=\"AbiSuite\" -DVERSION=\"1.1.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -D
    HAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_IN
    TTYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_TIME_H
    =1 -DHAVE_UNISTD_H=1 -DHAVE_MALLOC_H=1 -DWORDS_BIGENDIAN=1 -DHAVE_LIBXML2=1 -DHAVE_WV=1 -DHAVE_ALLOC
    A_H=1 -DHAVE_ALLOCA=1 -DRETSIGTYPE=void -DHAVE_RE_COMP=1 -DHAVE_REGCOMP=1 -DHAVE_STRDUP=1 -DHAVE_STR
    STR=1 -DSETENV_MISSING=1 -I. -I. -I'../../../../src/af/util/xp' -I'../../../../src/af/ev/xp' -I'..
    /../../../src/af/ev/xp' -I'../../../../src/af/gr/xp' -I'../../../../src/af/xap/xp' -I'../../../../sr
    c/af/util/unix' -I'../../../../src/af/ev/unix' -I'../../../../src/af/gr/unix' -I'../../../../src/af/
    xap/unix' -I'../../../../src/wp/ap/xp' -I'../../../../src/wp/impexp/xp' -I'../../../../src/wp/ap/uni
    x' -I'../../../../src/wp/ap/xp/ToolbarIcons' -I/usr/local/include -DHAVE_PSPELL=1 -Wall -pedanti
    c -ansi -D_POSIX_SOURCE -D_BSD_SOURCE -pipe -DNDEBUG -I/usr/local/include/libxml2 -I/usr/local/incl
    ude -DBIDI_ENABLED -I/users/mgansser/GNU/abiword/wv -I/usr/local/include -DHAVE_CURL=1 -DHAVE_THREAD
    S=1 -D_REENTRANT -I/opt/gtk2/include/glib-2.0 -I/opt/gtk2/lib/glib-2.0/include -I/opt/gtk2/include/
    glib-2.0 -I/opt/gtk2/lib/glib-2.0/include -I/opt/gtk2/include/gtk-2.0 -I/opt/gtk2/lib/gtk-2.0/inc
    lude -I/opt/gtk2/include/atk-1.0 -I/opt/gtk2/include/pango-1.0 -I/usr/lib/X11R6/include -I/opt/gtk2/
    include/glib-2.0 -I/opt/gtk2/lib/glib-2.0/include -DSUPPORTS_UT_IDLE=1 -DABI_BUILD_VERSION=\"1.1
    .0\" -c -o pspell_checker.o `test -f 'pspell_checker.cpp' || echo './'`pspell_checker.cpp
    cc1plus: warning: changing search order for system directory "/usr/local/include"
    cc1plus: warning: as it has already been specified as a non-system directory
    pspell_checker.cpp: In function `void couldNotLoadDictionary(const char*)':
    pspell_checker.cpp:43: no method `XAP_App::getApp'
    pspell_checker.cpp:44: invalid use of undefined type `struct XAP_App'
    ../../../../src/af/xap/xp/xap_Dialog.h:36: forward declaration of `struct
       XAP_App'
    pspell_checker.cpp:48: invalid use of undefined type `struct XAP_App'
    ../../../../src/af/xap/xp/xap_Dialog.h:36: forward declaration of `struct
       XAP_App'
    pspell_checker.cpp:53: warning: invalid conversion from `const char*' to `char*
       '
    gmake[4]: *** [pspell_checker.o] Error 1
    gmake[4]: Leaving directory `/users/mgansser/GNU/abiword/abi/src/other/spell/xp'
    gmake[3]: *** [all-recursive] Error 1
    gmake[3]: Leaving directory `/users/mgansser/GNU/abiword/abi/src/other/spell'
    gmake[2]: *** [all-recursive] Error 1
    gmake[2]: Leaving directory `/users/mgansser/GNU/abiword/abi/src/other'
    gmake[1]: *** [all-recursive] Error 1
    gmake[1]: Leaving directory `/users/mgansser/GNU/abiword/abi/src'
    gmake: *** [all-recursive] Error 1

    Systemsofteware all installed in /usr/local:
    automake-1.6.3
    autoconf-2.53
    gcc-3.1
    gtk 2.0.6
    popt-1.6.4

    installed CVS-packages:
    mzfem_root:/users/mgansser/GNU/abiword/abi # ll ..
    total 96
    drwxr-xr-x 11 1000 513 4096 Aug 21 10:25 abi
    drwxr-xr-x 7 1000 513 4096 Aug 21 09:49 abidistfiles
    drwxr-xr-x 7 1000 513 4096 Aug 21 09:49 abiword-docs
    drwxr-xr-x 7 1000 513 4096 Aug 21 09:50 abiword-plugins
    drwxr-xr-x 8 1000 513 4096 Aug 21 09:50 expat
    drwxr-xr-x 15 1000 513 4096 Aug 21 09:50 libiconv
    drwxr-xr-x 6 1000 513 4096 Aug 21 09:51 libpng
    drwxr-xr-x 5 1000 513 4096 Aug 21 10:25 popt
    drwxr-xr-x 4 1000 513 4096 Aug 21 09:50 unixfonts
    drwxr-xr-x 21 1000 513 8192 Aug 21 10:24 wv
    drwxr-xr-x 8 1000 513 4096 Aug 21 09:51 zlib

    thanks Martin



    This archive was generated by hypermail 2.1.4 : Wed Aug 21 2002 - 07:03:47 EDT