Comments (4)
It's the ordering to gcc. You need to split it since you're building the way you do, without intermediate .o. Like this:
gcc `pkg-config --cflags libuev` -o myTimer myTimer.c `pkg-config --libs --static libuev`
Untested, but that's the way gcc/ld wants the args.
from libuev.
Thanks, I didn't know about that. But I'm still getting the same error.
from libuev.
Now it works. Command substitution in the Fish shell doesn't seem to always work as expected.
This is how it compiled:
gcc -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 -I/usr/local/include -o myTimer myTimer.c -L/usr/local/lib -luev
from libuev.
Glad you got it sorted
from libuev.
Related Issues (19)
- Conflict with modern BSD queue.h when including uev.h in a program HOT 4
- Register new handlers on a running loop HOT 5
- Reading from redirected stdin does not work
- #define ⇒ enum? HOT 2
- reserved identifier violation HOT 2
- tests broken with gcc version 7.2? HOT 3
- Support for autoconf 2.68 HOT 4
- timer-stop logic HOT 3
- 异步事件对共享资源同步性操作 HOT 2
- Regression: 'make install' stopped working in v1.0.5 HOT 2
- Not an issue just information about portability. HOT 5
- Undefined reference when using the joystick example HOT 3
- AM_CONFIG_HEADER is obsolete HOT 2
- CFLAGS in tests/Makefile.am HOT 1
- Add _FILE_OFFSET_BITS=64 CPP flag? HOT 28
- Possible event buffer overrun HOT 1
- Segfault when stopping timer before calling uev_exit()
- Y2038: GLIBC 64-bit time_t on 32-bit platforms HOT 3
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 libuev.