Menu

#1 compiler error

open
nobody
5
2003-01-04
2003-01-04
No

I'm unable to compile kwavemon 0.2 on my redhat 7.3
system (gcc version 2.96 20000731, qt-3.0.5-7.11, kde
3.0.3)
:

...
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde
-I/usr/lib/qt3-gcc2.96/include -I/usr/X11R6/include
-DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor
-Wno-long-long -Wbad-function-cast -Wundef -Wall
-pedantic -W -Wpointer-arith -Wmissing-prototypes
-Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
-Wcast-align -Wconversion -O2 -fno-exceptions
-fno-check-new -c -o wcard.o `test -f 'wcard.cpp' ||
echo './'`wcard.cpp

wcard.cpp: In method `int WCard::getBitRate (BitRates
*, int &)':
wcard.cpp:204: incompatible types in assignment of
`const char[5]' to
`char[5]'
wcard.cpp:205: incompatible types in assignment of
`const char[5]' to
`char[5]'
wcard.cpp:206: incompatible types in assignment of
`const char[5]' to
`char[5]'
wcard.cpp:207: incompatible types in assignment of
`const char[5]' to
`char[5]'
wcard.cpp:208: incompatible types in assignment of
`const char[5]' to
`char[5]'
wcard.cpp:213: warning: control reaches end of non-void
function
wcard.cpp: In method `int WCard::getChannel (int &,
double &, char *,
int &, int &)':
wcard.cpp:282: warning: comparison between signed and
unsigned integer
expressions
wcard.cpp:246: warning: unused variable `int index'
wcard.cpp: In method `int WCard::getRTS (int &)':
wcard.cpp:367: warning: unused parameter `int &value'
wcard.cpp:369: warning: no return statement in function
returning
non-void
make[2]: *** [wcard.o] Error 1

Discussion

  • Hannes Mehnert

    Hannes Mehnert - 2003-02-02

    Logged In: YES
    user_id=702885

    this also happened to a gentoo user using gcc-2.95.3. attached is a fix.

     
  • Hannes Mehnert

    Hannes Mehnert - 2003-02-02

    Logged In: YES
    user_id=702885

    hmm, dunno how to attach a fix, it is located here:
    http://bugs.gentoo.org/attachment.cgi?id=7850&action=view

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.