81 Star 255 Fork 108

呵大官人 / fooking

 / 详情

make 报错

已完成
创建于  
2015-06-14 23:11

g++ -c -O -g -Wall -Wno-deprecated -I../src/ -I../deps/lua/src -L../deps/lua/src Socket.cpp -o Socket.o
In file included from Log.h:7:0,
from Socket.h:3,
from Socket.cpp:1:
/usr/include/unistd.h:545:15: error: conflicting declaration of ‘char** environ’ with ‘C’ linkage
extern char **environ;
^
In file included from Socket.h:2:0,
from Socket.cpp:1:
fooking.h:40:15: note: previous declaration with ‘C++’ linkage
extern char **environ;
^
Makefile:13: recipe for target 'Socket.o' failed
make[1]: *** [Socket.o] Error 1
make[1]: Leaving directory '/usr/local/apache2/htdocs/fooking/src'
Makefile:2: recipe for target 'all' failed
make: *** [all] Error 2

评论 (3)

你是什么系统?gcc版本是多少?我测试一下。

你拉一下新版本,改了char **environ。

状态更改为 已关闭

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(2)
11506 scgywx 1578914778 147099 malatoday 1578919532
C++
1
https://gitee.com/scgywx/fooking.git
git@gitee.com:scgywx/fooking.git
scgywx
fooking
fooking

搜索帮助