Comments (1)
查了下stackoverflow上都说要指定-lrt,看cmkae目录下有个link.txt,在里面添加了-lrt,编译通过。
[root aio01.dir]#pwd
/root/yolanda/build/chap-30/CMakeFiles/aio01.dir
[root aio01.dir]#cat link.txt
/usr/bin/cc CMakeFiles/aio01.dir/aio01.c.o -o ../bin/aio01 -rdynamic ../lib/libyolanda.a -lpthread **-lrt**
[root aio01.dir]#
from yolanda.
Related Issues (20)
- 缺少config.h HOT 1
- 内存释放问题 HOT 1
- 关于头文件的问题 HOT 3
- 这code写的是为了增加理解难度么。。。 HOT 3
- make错误 ld: library not found for -lrt HOT 2
- chap-34 执行出现 错误 Segmentation fault (core dumped) HOT 5
- 28章内容,编译报错;老师你是用的啥环境啊,内核版本多少?系统有镜像吗?
- 课程最后的高性能http有完整的代码吗? HOT 1
- rename chap-33 missing rename CMakeLists.txt 34 to 33 HOT 1
- /yolanda/chap-5/lib/common.h:8:20: error: config.h: No such file or directory HOT 13
- 如何证明能同时支持C10k的连接? HOT 1
- 拼写错误
- Cmake报错 HOT 2
- 最后的大作业错误提示:段错误(核心已转存) HOT 12
- /usr/bin/ld: cannot find -lyolanda HOT 2
- g++ 9.4 编译问题解决 HOT 1
- channel_map中内存分配问题
- tcp连接断开时未关闭fd
- Ubuntu-20.04.6 LTS 出现 Segmentation fault (core dumped) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yolanda.