viewml cross compilation problem

From: nick_faye (ivpfmc28_at_yahoo.com)
Date: 02/05/04


Date: 4 Feb 2004 19:16:44 -0800

hi guys,

i am cross compiling viewml-0.22 using arm-elf-gcc version 2.95.3 and
i got these errors. i am not sure if these are really parse errors
because the code seems to be correct. in fact this error did not show
up when i was compiling the same codes on our x86 box using gcc 2.96.
please enlighten me. below is the error report:

_____________________________________________
arm-elf-g++ -L/home/ina/arm-elf-uclibc-include
-I/home/ina/arm-root/include
-I. -I../kdecore -I../kimgio -I../kdeui -I../jscript
-I/home/ina/arm-root/home/mayet/flnx
-I/home/ina/arm-root/home/mayet/flnx/FL
-I./fltk -I/home/ina/arm-root/home/mayet/microwindows-0.90/src/include
-I/home/ina/arm-elf-uclibc-include/microwin
-I/home/ina/arm-elf-uclibc-include
-I/home/ina/arm-elf-uclibc-include/c++
-I/home/ina/arm-elf-uclibc-include/c++/old_hp
-I/home/ina/arm-root/include/w3c-libwww -g --permissive -DNANOX
-D_NANOX
`/home/ina/arm-root/usr/bin/libwww-config --cflags` -DEXEC_EXTENSIONS
-I.. -c
-o html.o html.cpp
In file included from ../kdecore/kurl.h:31,
                 from html.cpp:24:
fltk/qstring.h:16: parse error before `{'
fltk/qstring.h:21: parse error before `int'
fltk/qstring.h:22: parse error before `const'
fltk/qstring.h:22: warning: ANSI C++ forbids declaration `m_bNull'
with no type
fltk/qstring.h:22: parse error before `}'
fltk/qstring.h:23: parse error before `const'
fltk/qstring.h:23: warning: ANSI C++ forbids declaration `m_bNull'
with no type
fltk/qstring.h:23: redefinition of `int m_bNull'
fltk/qstring.h:22: `int m_bNull' previously defined here
fltk/qstring.h:23: parse error before `}'
fltk/qstring.h:24: parse error before `const'
fltk/qstring.h:24: warning: ANSI C++ forbids declaration `m_bNull'
with no type
fltk/qstring.h:24: redefinition of `int m_bNull'
fltk/qstring.h:23: `int m_bNull' previously defined here
fltk/qstring.h:24: parse error before `}'
fltk/qstring.h:26: non-member function `copy()' cannot have `const'
method qualifier
fltk/qstring.h:26: semicolon missing after declaration of `class
QString'
fltk/qstring.h: In function `int copy()':
fltk/qstring.h:26: invalid use of `this' in non-member function
fltk/qstring.h: At top level:
fltk/qstring.h:27: non-member function `operator char *()' cannot have
`const' method qualifier
fltk/qstring.h:27: `operator char *()' must be a nonstatic member
function
fltk/qstring.h:27: `operator char *()' must take exactly one argument
fltk/qstring.h: In function `operator char *()':
fltk/qstring.h:27: warning: implicit declaration of function `int
c_str(...)'
fltk/qstring.h: At top level:
fltk/qstring.h:28: non-member function `operator const char *()'
cannot have `const' method qualifier
fltk/qstring.h:28: `operator const char *()' must be a nonstatic
member function
fltk/qstring.h:28: `operator const char *()' must take exactly one
argument
fltk/qstring.h: In function `operator const char *()':
fltk/qstring.h:28: warning: return to `const char *' from `int' lacks
a cast
fltk/qstring.h: At top level:
fltk/qstring.h:30: non-member function `find(const QRegExp &, int)'
cannot have `const' method qualifier
fltk/qstring.h:31: non-member function `find(char, int, bool)' cannot
have `const' method qualifier
fltk/qstring.h:32: non-member function `find(const QString &, int,
bool)' cannot have `const' method qualifier
fltk/qstring.h:34: non-member function `isEmpty()' cannot have `const'
method qualifier
fltk/qstring.h: In function `bool isEmpty()':
fltk/qstring.h:34: warning: implicit declaration of function `int
empty(...)'
fltk/qstring.h: In function `class QString left(unsigned int)':
fltk/qstring.h:35: return-type `class QString' is an incomplete type
fltk/qstring.h:35: warning: implicit declaration of function `int
substr(...)'
fltk/qstring.h:35: return to `void' from `int'
fltk/qstring.h: In function `class QString right(unsigned int)':
fltk/qstring.h:36: return-type `class QString' is an incomplete type
fltk/qstring.h:36: warning: implicit declaration of function `int
length(...)'
fltk/qstring.h:36: return to `void' from `int'
fltk/qstring.h: At top level:
fltk/qstring.h:38: non-member function `mid(unsigned int, unsigned
int)' cannot have `const' method qualifier
fltk/qstring.h: In function `class QString mid(unsigned int, unsigned
int = 0ffffffff)':
fltk/qstring.h:38: return-type `class QString' is an incomplete type
fltk/qstring.h:39: aggregate `class QString tmp' has incomplete type
and cannot be initialized
fltk/qstring.h:43: confused by earlier errors, bailing out
make[1]: *** [html.o] Error 1
make[1]: Leaving directory
`/home/ina/arm/armutils_2.2.21.0/gnutools/build_arm/root/home/mayet/viewml-0.22/src'
make: *** [viewml] Error 2
_____________________________________________

any inputs are very much appreciated!
thank you



Relevant Pages

  • porting problem
    ... Socket.h:47: parse error before `)' ... Socket.h:46: conflicts with previous declaration `int Socket::sending' ... Socket.cpp:33: ANSI C++ forbids declaration `memset' with no type ... Socket.cpp:38: ANSI C++ forbids declaration `exit' with no type ...
    (comp.unix.programmer)
  • Re: Funky function
    ... >> It makes it possible to call this member function on a const object ... >> object may or may not be const). ... int Data; ... in the next line you try to call a function foo on MyData. ...
    (comp.lang.cpp)
  • Re: Difficulty with nested template classes (newbie)
    ... the huge post but I am including first the errors, then the template ... Reference initialized with 'const double', ... matrix& lookup (int row, int col); ... // iterator operator++ ...
    (comp.lang.cpp)
  • Re: accessor member functions and const
    ... > reference the returned value v. ... int& val ... const int& valconst ... so one cannot modify the object via the reference. ...
    (alt.comp.lang.learn.c-cpp)
  • [2.6.6-BK] NTFS 2.1.11 Really final cleanups.
    ... throughout the NTFS code to ntfschar since uchar_t is already defined by POSIX ... +BOOL find_attr(const ATTR_TYPES type, const ntfschar *name, const u32 name_len, ... register int rc; ...
    (Linux-Kernel)

Loading