SCI Seg3D Mailing List

Text archives Help


[Seg3D] Re: Re: Build error


Chronological Thread 
  • From: Andreas Maier <a.maier@lnm.mw.tum.de>
  • To: seg3d@sci.utah.edu
  • Subject: [Seg3D] Re: Re: Build error
  • Date: Tue, 2 Feb 2010 15:15:23 +0100
  • Organization: lnm

On Tuesday 02 February 2010 02:12:02 pm Ramón Casero Cañas wrote:
> Xiang Hao wrote:
> > Hi,
> >
> > I am trying to build seg3D_1.12 on my desktop(Opensuse11.2), but I got
> > this error. What does this mean?
> >
> > [ 15%] Built target glew
> > [ 15%] Building CXX object
> > Externals/slivr/CMakeFiles/slivrG.dir/Point.cc.o
> > /home/sci/hao/software/Seg3D_1.12_20090930_source/src/Externals/slivr/Poi
> >nt.cc: In member function ‘std::string SLIVR::Point::get_string() const’:
> > /home/sci/hao/software/Seg3D_1.12_20090930_source/src/Externals/slivr/Poi
> >nt.cc:51: error: ‘sprintf’ was not declared in this scope make[2]: ***
> > [Externals/slivr/CMakeFiles/slivrG.dir/Point.cc.o] Error 1 make[1]: ***
> > [Externals/slivr/CMakeFiles/slivrG.dir/all] Error 2
>

Hi Xiang,

I had the same problem on my Fedora 12 system.

The problem is a confusion of the "string.h" and the c++ string class.
The external slivr files want to import the string.h by 
using "include<string>" but your up-to-date compiler imports the string class 
(as it shoud be).
This means that the external files use an outdated programming that you can 
overcome by using an older version of your gcc (no idea how that works - but 
thats what others write in the web and I think that may solve your problem). 
For my case, I used an older PC with Fedora 8 to compile and then just copied 
the executables to my newer PC.

Best regards,

Andreas Maier



Archive powered by MHonArc 2.6.16.

Top of page