markraz / carve

Automatically exported from code.google.com/p/carve
Other
0 stars 0 forks source link

More missing includes (gcc 4.4) #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 ideasma...@gmail.com on 2 Jun 2009 at 2:36

GoogleCodeExporter commented 9 years ago
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 tobias.s...@gmail.com on 2 Jun 2009 at 3:28

GoogleCodeExporter commented 9 years ago
cstring is needed for strcmp()

Original comment by ideasma...@gmail.com on 2 Jun 2009 at 6:13

GoogleCodeExporter commented 9 years ago
Issue 3 has been merged into this issue.

Original comment by tobias.s...@gmail.com on 9 Jun 2009 at 1:24