happyfish100 / libfastcommon

c common functions library extracted from my open source project FastDFS. this library is very simple and stable. functions including: string, logger, chain, hash, socket, ini file reader, base64 encode / decode, url encode / decode, fast timer, skiplist, object pool etc. detail info please see the c header files.
http://bbs.chinaunix.net/forum-240-1.html
GNU Lesser General Public License v3.0
898 stars 531 forks source link

编译的时候总是报错 #49

Open renoyuan opened 11 months ago

renoyuan commented 11 months ago

libserverframe-1.1.23

gcc -Wall -Wformat-truncation=0 -Wformat-overflow=0 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -fPIC -c -o sf_nio.lo sf_nio.c -Iinclude -I/usr/local/include In file included from /usr/include/fastcommon/fast_task_queue.h:19:0, from sf_nio.c:38: /usr/include/fastcommon/ioevent.h:82:2: error: #error port me

error port me


对于 libfastcommon libserverframe fastdfs 的版本对应关系和稳定版本, 请问在哪里的可以看到啊,下载最新的编译的时候总是报错

happyfish100 commented 11 months ago

请问你使用的是什么操作系统?

renoyuan commented 11 months ago

请问你使用的是什么操作系统? ubuntu1~18.04 gcc (Ubuntu 7.5.0-6ubuntu2) 7.5.0

happyfish100 commented 11 months ago

在命令行执行 uname 输出什么呢?

renoyuan commented 11 months ago

在命令行执行 uname 输出什么呢? Linux

happyfish100 commented 11 months ago

你先编译和安装 libfastcommon了吗?