[Hamlib-developer] Re: trouble compiling hamlib...
Library to control radio transceivers and receivers
Brought to you by:
n0nb
|
From: Stephane F. <f8...@fr...> - 2002-09-22 11:37:59
|
Hi Ernie, [this message has been Cc:'d to hamlib-developer] > I am getting a failure when attempting to compile hamlib 1.1.3....I've > attached some of the warning messages from the point of failure. > > Any ideas? You've just got a picky compiler. No big deal. Anyway, I'll try to make everyone happy :) BTW, which compiler is it? Isn't it some gcc3.x version? I'm curious what "g++ --version" outputs. > ------------------------------------- > (excerpted from make to point of failure) > g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../src -I../lib > -D_GNU_S > OURCE -g -O2 -Wall -c rigclass.cc -MT rigclass.lo -MD -MP -MF > .deps/rigclass.TPl > o -fPIC -DPIC -o .libs/rigclass.lo > In file included from /usr/include/c++/3.2/backward/iostream.h:31, > from ../include/hamlib/rigclass.h:225, > from rigclass.cc:37: > /usr/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning This > fi > le includes at least one deprecated or antiquated header. Please consider > using > one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples > in > clude substituting the <X> header for the <X.h> header for C++ includes, or > <sst > ream> instead of the deprecated header <strstream.h>. To disable this warning > us > e -Wno-deprecated. Okay, I'm no C++ expert. For this one, I just turned #include <iostream.h> to #include <iostream> (without .h) > rigclass.cc:366: default argument given for parameter 2 of `void > Rig::setRptrShi > ft(rptr_shift_e, int = 0)' > ../include/hamlib/rigclass.h:99: after previous specification in `void > Rig::setR > ptrShift(rptr_shift_e, int = 0)' [...] The default arg value was given both in the include and the source .cc file. rigclass.h is sufficient, so I updated rigclass.cc. Modifications are commited to the cvs rep. Thanks for the report, Stephane |