[Ktechlab-devel] errors compiling SVN - revision 490

Eric Ensmann quinn at killkenny.org
Tue Sep 27 20:18:19 UTC 2005


Hi again :)

okay there are a few other problems:

1.
multiplexer.cpp: In member function `virtual void Multiplexer::dataChanged()':
multiplexer.cpp:68: error: call of overloaded `log(int)' is ambiguous
<internal>:68: error: candidates are: double std::log(double)
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/include/g++-v3/cmath:411: error:       
             float std::log(float)
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/include/g++-v3/cmath:419: error:       
             long double std::log(long double)

can be fixed (don't know if this makes any sense) in line 68 of 
multiplexer.cpp by casting dataInt to double:

int addressSize = int( std::ceil( std::log( (double)dataInt("numInput") ) 
std::log(2.0) ) );

instead of:

int addressSize = int( std::ceil( std::log( dataInt("numInput") ) 
std::log(2.0) ) );


2.
demultiplexer.cpp: In member function `virtual void 
   Demultiplexer::dataChanged()':
demultiplexer.cpp:68: error: call of overloaded `log(int)' is ambiguous
<internal>:68: error: candidates are: double std::log(double)
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/include/g++-v3/cmath:411: error:       
             float std::log(float)
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/include/g++-v3/cmath:419: error:       
             long double std::log(long double)

same "solution" as above.

3. Finally i get this one:
gpsimprocessor.cpp: In member function `unsigned int 
   GpsimProcessor::programMemorySize() const':
gpsimprocessor.cpp:162: error: `program_memory_size' undeclared (first use 
this 
   function)
gpsimprocessor.cpp:162: error: (Each undeclared identifier is reported only 
   once for each function it appears in.)
gpsimprocessor.cpp: In member function `void GpsimDebugger::stackStep(int)':
gpsimprocessor.cpp:616: warning: unused parameter `int dl'
gpsimprocessor.cpp: In member function `
   RegisterSet::RegisterSet(RegisterMemoryAccess*)':
gpsimprocessor.cpp:654: warning: unused parameter `RegisterMemoryAccess*rma'
gpsimprocessor.cpp: In member function 
`RegisterInfo::RegisterInfo(Register*)':
gpsimprocessor.cpp:701: warning: unused parameter `Register*reg'

Have fun ;-)

> Ah, "this" bug again.
>
> For some reason, my g++ and associated tool chain doesn't pick up on when
> I've neglected to include assert.h, or have ambigious calls to std math
> functions, or several other similar problems.
>
> I've commited fixes - but can't be sure that something hasn't been missed
> as I don't get these compilation errors - please say if anything still
> isn't compiling.
>
> Regards,
> David Saxton




More information about the Ktechlab-devel mailing list