Cannot compile under FreeBSD
Posted: Thu May 26, 2005 11:47 pm
I cannot compile Context Free under my FreeBSD box. Using gmake it gives :
--
fredn:~/tmp/ContextFree> gmake
g++ -Isrc-common -Isrc-unix -Iobjs -Isrc-agg/include -O3 -c -o objs/cfdg.o src-common/cfdg.cpp
src-common/cfdg.cpp: In method `Renderer::~Renderer()':
src-common/cfdg.cpp:241: implicit declaration of function `int unlink(...)'
gmake: *** [objs/cfdg.o] Erreur 1
--
So i has #include <unistd.h> in cfdg.cpp. And now :
--
fredn:~/tmp/ContextFree> gmake
g++ -Isrc-common -Isrc-unix -Iobjs -Isrc-agg/include -O3 -c -o objs/cfdg.o src-common/cfdg.cpp
g++ -Isrc-common -Isrc-unix -Iobjs -Isrc-agg/include -O3 -c -o objs/yglue.o src-common/yglue.cpp
src-common/yglue.cpp:21: `FILE' was not declared in this scope
src-common/yglue.cpp:21: `new_file' was not declared in this scope
src-common/yglue.cpp:21: variable or field `yyrestart' declared void
src-common/yglue.cpp: In function `void yg_Reset(...)':
src-common/yglue.cpp:106: `yyrestart' cannot be used as a function
gmake: *** [objs/yglue.o] Erreur 1
--
So before I dive into the code, has someone ever compiled under FreeBSD ?
Fred
--
fredn:~/tmp/ContextFree> gmake
g++ -Isrc-common -Isrc-unix -Iobjs -Isrc-agg/include -O3 -c -o objs/cfdg.o src-common/cfdg.cpp
src-common/cfdg.cpp: In method `Renderer::~Renderer()':
src-common/cfdg.cpp:241: implicit declaration of function `int unlink(...)'
gmake: *** [objs/cfdg.o] Erreur 1
--
So i has #include <unistd.h> in cfdg.cpp. And now :
--
fredn:~/tmp/ContextFree> gmake
g++ -Isrc-common -Isrc-unix -Iobjs -Isrc-agg/include -O3 -c -o objs/cfdg.o src-common/cfdg.cpp
g++ -Isrc-common -Isrc-unix -Iobjs -Isrc-agg/include -O3 -c -o objs/yglue.o src-common/yglue.cpp
src-common/yglue.cpp:21: `FILE' was not declared in this scope
src-common/yglue.cpp:21: `new_file' was not declared in this scope
src-common/yglue.cpp:21: variable or field `yyrestart' declared void
src-common/yglue.cpp: In function `void yg_Reset(...)':
src-common/yglue.cpp:106: `yyrestart' cannot be used as a function
gmake: *** [objs/yglue.o] Erreur 1
--
So before I dive into the code, has someone ever compiled under FreeBSD ?
Fred