Menu

#1 compilation error on codeblock/mingw

open-fixed
nobody
None
7
2012-10-20
2012-08-20
skAIware
No

compilation error on codeblock/mingw with spInputOutputOSInformator.cpp :
sprintf : undefined
solution : add #include <stdio.h> at the top of the file.

Discussion

  • skAIware

    skAIware - 2012-08-20
     
  • skAIware

    skAIware - 2012-08-23
    • priority: 5 --> 7
     
  • skAIware

    skAIware - 2012-08-23

    No news.
    Is there anybody here ?

     
  • skAIware

    skAIware - 2012-08-29

    Allo ?

     
  • Laura Hermanns

    Laura Hermanns - 2012-10-20

    Thanks for you repot :-)
    Have you used the SVN sources?
    I'll fix this for the next SVN revision.

     
  • Laura Hermanns

    Laura Hermanns - 2012-10-20
    • status: open --> open-fixed
     
  • Laura Hermanns

    Laura Hermanns - 2012-10-20

    Fixed: I'm no longer using sprintf in this file. It's up to date in the SVN sources ;-)

     
  • skAIware

    skAIware - 2012-10-20

    thanks. I have re updated SVN and sadky a new error has appeared :

    [ 1%] Building CXX object CMakeFiles/SoftPixelEngine.dir/sources/Base/spBasicMeshGenerator.cpp.o
    In file included from /cygdrive/g/devel/softpixelengine/softpixelengine/trunk/sources/Base/spTreeBuilder.hpp:19:0,
    from /cygdrive/g/devel/softpixelengine/softpixelengine/trunk/sources/SceneGraph/spSceneGraph.hpp:17,
    from /cygdrive/g/devel/softpixelengine/softpixelengine/trunk/sources/Base/spBasicMeshGenerator.cpp:10:
    /cygdrive/g/devel/softpixelengine/softpixelengine/trunk/sources/Base/spTreeNodeImage.hpp: In member function ‘sp::scene::ImageTreeNode<T>* sp::scene::ImageTreeNode<T>::getChildA() const’:
    /cygdrive/g/devel/softpixelengine/softpixelengine/trunk/sources/Base/spTreeNodeImage.hpp:147:20: erreur: ‘ChidlA_’ was not declared in this scope
    /cygdrive/g/devel/softpixelengine/softpixelengine/trunk/sources/Base/spTreeNodeImage.hpp: In member function ‘sp::scene::ImageTreeNode<T>* sp::scene::ImageTreeNode<T>::getChildB() const’:
    /cygdrive/g/devel/softpixelengine/softpixelengine/trunk/sources/Base/spTreeNodeImage.hpp:151:20: erreur: ‘ChidlB_’ was not declared in this scope

    Just a typing error :
    ChidlA_ vs ChildA_

     
  • Laura Hermanns

    Laura Hermanns - 2012-10-20

    Thanks, you're right. VisualC++ does not check those errors when templates are not instantiated.

     
  • skAIware

    skAIware - 2012-10-20

    You are welcome.
    Now some boost error :
    [ 1%] Building CXX object CMakeFiles/SoftPixelEngine.dir/sources/Base/spBasicMeshGenerator.cpp.o
    In file included from /cygdrive/g/perso/devel/softpixelengine/softpixelengine/trunk/sources/Base/spBasicMeshGenerator.cpp:12:0:
    /usr/include/boost/foreach.hpp:125:12: erreur: redefinition of ‘struct boost::BOOST_FOREACH::is_lightweight_proxy<T>’
    /usr/include/boost/foreach_fwd.hpp:63:5: erreur: previous definition of ‘struct boost::BOOST_FOREACH::is_lightweight_proxy<T>’
    /usr/include/boost/foreach.hpp:135:12: erreur: redefinition of ‘struct boost::BOOST_FOREACH::is_noncopyable<T>’
    /usr/include/boost/foreach_fwd.hpp:68:5: erreur: previous definition of ‘struct boost::BOOST_FOREACH::is_noncopyable<T>’
    In file included from /usr/include/boost/foreach.hpp:89:0,

    Which version of boost do we have to use ?
    Does cmake check the version of boost ?

     
  • Laura Hermanns

    Laura Hermanns - 2012-10-20

    Yes, CMake should check for boost version 1.47.0.
    But this seems to be an internal boost error :-(

     
  • Nobody/Anonymous

    301 Moved Permanently I was recommended this web site by my cousin. I am not sure whether this post is written by him as no one else know such detailed about my trouble. Youre incredible! Thanks! your article about 301 Moved PermanentlyBest Regards Veronica
    <a href="http://en.netlog.com/gabrielborre/blog/blogid=14565238" title="Articles">Articles</a>

     
  • Nobody/Anonymous

    Writing is an art that takes dedication and effort to produce content like this writer has written. Thank you for this informative and interesting content.
    [url=http://help9freeze.autisable.com/769928731/plus-size-prom-dresses-exciting-colour-choices/]Prom gowns[/url]

     
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.