|
![](/i/fill.gif) |
In article <web.3d4a752b6a7e3952bbe30ae0@news.povray.org>,
"Thomas" <tho### [at] gmx net> wrote:
> Since everyone started to do private compiles I thought I might give it a
> try on Cygwin (unix enviroment under Windows). And I end up with the
> following error:
>
> g++ -DPREFIX=\"/usr/local\" -DPOV_LIB_DIR=\"/usr/local/share/povray-3.5\"
> -DCOMPILER_VER=\".Linux.gcc\" -DSYSCONFDIR=\"/usr/local/etc\" `if [
> "Xgcc" = "Xgcc" ]; then echo "-Wno-multichar"; fi ` -I/usr/X11R6/include
> -I/usr/X11R6/include/X11 -c unix.cpp
> unix.cpp:101: libgen.h: No such file or directory
> make: *** [unix.o] Error 1
>
> And I don't seem to have libgen.h on my system at all, any clue where I
> could find a copy of it?
When I compiled under Mac OS X, I just commented the #include out and
implemented my own basename() and dirname() functions. They haven't been
tested, but here they are:
char * basename(char * path)
{
int j = 0;
int idx = 0;//current starting location of copy
while(path[j])
{
if(path[j] == '/')
{
idx = 0;
}
else
{
path[idx] = path[j];
idx++;
}
j++;
}
path[j] = '\0';
return path;
}
char * dirname(char * path)
{
int idx = -1;//index of last '/' in string
for(int j = 0; path[j]; j++)
if(path[j] == '/')
idx = j;
if(idx != -1)
path[idx + 1] = '\0';
return path;
}
--
Christopher James Huff <chr### [at] mac com>
POV-Ray TAG e-mail: chr### [at] tag povray org
TAG web site: http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |