[campcaster-dev] TypeInfoHelper.cpp:27: error: 'free' was not declared in this scope
  • Hi folks!

    I was trying to compile trunk on Ubuntu(Studio) 8.10 (intrepid), with all
    the packages installed that are required to compile, according to
    DevelopmentEnvironment (for Hardy). But unfortunately, I'm getting this
    error:

    TypeInfoHelper.cpp: In static member function 'static std::string CppUnit::TypeInfoHelper::getClassName(const std::type_info&)':
    TypeInfoHelper.cpp:27: error: 'free' was not declared in this scope

    What is here the problem? "TypeInfoHelper" sounds like a part of a runtime
    system, which is probably why you're using free() in C++. But how do I fix
    the error?

    Thanks in advance!
    Greetings,
    Fabiano
  • 4 Comments sorted by
  • As checked via IRC, cppunit is installed system-wide.
    The box is running x86-64, with gcc-4.3.2, if this is important...

    Greetings,
    Fabiano
  • On Wed, Nov 12, 2008 at 08:30:20PM +0100, Fabiano Sidler wrote:
    > As checked via IRC, cppunit is installed system-wide.
    > The box is running x86-64, with gcc-4.3.2, if this is important...

    And with libgtk2.0-0 and libgtkmm-2.4-1c2a installed...
  • > I was trying to compile trunk on Ubuntu(Studio) 8.10 (intrepid), with all
    > the packages installed that are required to compile, according to
    > DevelopmentEnvironment (for Hardy). But unfortunately, I'm getting this
    > error:
    >
    > TypeInfoHelper.cpp: In static member function 'static std::string
    > CppUnit::TypeInfoHelper::getClassName(const std::type_info&)':
    > TypeInfoHelper.cpp:27: error: 'free' was not declared in this scope

    Hi Fabiano,

    A quick fix is to comment out the "make cppunit install" line in the
    Makefile (under tools_setup). It is not needed to run the app, only
    for the tests.

    Are you sure you have the package libcppunit-dev installed? The
    configure script is supposed to check for this and not try to compile
    it if it's already there. It may be broken, of course.

    Regards,
    Ferenc
  • On Thu, Nov 13, 2008 at 11:00:06PM +0100, Ferenc Gerlits wrote:
    >> TypeInfoHelper.cpp: In static member function 'static std::string
    >> CppUnit::TypeInfoHelper::getClassName(const std::type_info&)':
    >> TypeInfoHelper.cpp:27: error: 'free' was not declared in this scope
    >
    > Hi Fabiano,
    >
    > A quick fix is to comment out the "make cppunit install" line in the
    > Makefile (under tools_setup).

    Hmm...not found anything like tools_setup or "make cppunit install" here.
    As probably not stated above, i've checked out trunk from SVN:

    $ svn checkout svn://code.campware.org/campcaster/trunk/campcaster

    > Are you sure you have the package libcppunit-dev installed?

    $ aptitude search libcppunit-dev
    i libcppunit-dev - Unit Testing Library for C++

    Thank you for your help! Smile
    Greetings,
    Fabiano