carve icon indicating copy to clipboard operation
carve copied to clipboard

More missing includes (gcc 4.4)

Open GoogleCodeExporter opened this issue 10 years ago • 3 comments

intersect_classify_edge.cpp needs
#include <stdint.h> // for uint32_t

src/radiance.cp
#include <stdio.h>

src/model/ply_format.cpp
#include <stdio.h>
#include <cstring>

lib/math.cpp
#include <stdio.h>

src/model/vtk_format.cpp
#include <stdio.h>


Every instance of
t = strchr(l, k);
...was giving a compiler error
t = (char *)strchr(l, k);
...works ok



Original issue reported on code.google.com by [email protected] on 2 Jun 2009 at 2:36

GoogleCodeExporter avatar Dec 12 '15 18:12 GoogleCodeExporter

I've fixed almost all of these, but could you please tell me what the specific 
error is when <cstring> isn't 
included in ply_format.cpp?

The correct fix for the strchr() issue is to assume that the return type is 
const char *.

Original comment by [email protected] on 2 Jun 2009 at 3:28

  • Changed state: Started

GoogleCodeExporter avatar Dec 12 '15 18:12 GoogleCodeExporter

cstring is needed for strcmp()

Original comment by [email protected] on 2 Jun 2009 at 6:13

GoogleCodeExporter avatar Dec 12 '15 18:12 GoogleCodeExporter

Issue 3 has been merged into this issue.

Original comment by [email protected] on 9 Jun 2009 at 1:24

GoogleCodeExporter avatar Dec 12 '15 18:12 GoogleCodeExporter