[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

compilation error

From: raj
Subject: compilation error
Date: Wed, 08 Dec 2010 15:42:27 -0000
User-agent: G2/1.0

Hi All,
I am porting c/c++ applications from HPUX to Linux.
while doing so, i am getting this error:

Connect.cpp: In member function âvirtual bool
Connect::sendRequest(const char*, MsgBuilder&, const char*, char**,
void**) constâ:
Connect.cpp:259: error: no matching function for call to
âConnect::init() constâ
Connect.cpp:100: note: candidates are: bool Connect::init() <near

bool Connect :: init()
        return _isInit;

bool Connect::sendRequest()

     if (! init() )
                return false;

Here the function defined is not a constant.
Neither the calling function nor the called function are constant.
But Compiler is showing that it is constant while calling this

gcc -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --
infodir=/usr/share/info --enable-shared --enable-threads=posix --
enable-checking=release --with-system-zlib --enable-__cxa_atexit --
disable-libunwind-exceptions --enable-libgcj-multifile --enable-
languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --
disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-
gcj- --with-cpu=generic --host=i386-redhat-linux
Thread model: posix
gcc version 4.1.2 20071124 (Red Hat 4.1.2-42)

Please help.

Nagaraj Hayyal

reply via email to

[Prev in Thread] Current Thread [Next in Thread]