Comments (3)
The file is surrounded with
#ifndef LIBEVENT_H_
#define LIBEVENT_H_
...
#endif /* LIBEVENT_H_ */
which allows for the file to be included many times but declare things only once. Not sure what issue you are actually reporting.
Would you mind providing steps to reproduce the issue?
Thanks!
from nats.c.
I have a local header file include "adapter/libevent.h", and at source file a.c, b.c include my local header file.
compile is success, but when I link a.o and b.o as a program, then failed because for redefine functions.
from nats.c.
You should use the same principle of defining a tag for your header file so it is included only once.
I see that you closed the issue, was it resolved or did you close by mistake?
from nats.c.
Related Issues (20)
- kvStore_Purge is not removing keys HOT 7
- natsConnection_Connect can get stuck in a very long, unproductive loop HOT 1
- undefined reference to `pthread_mutexattr_init'
- single-threaded mode?
- Not all functions exported in the Windows DLL
- auth callout
- Implement Consumer Pause HOT 2
- Provide Conan recipe HOT 2
- natsOptions_SetTimeout() not being respected under certain conditions
- Example js-sub.c is missing stream parameter in usage HOT 1
- Documentation for Services HOT 1
- callbacks on natsConnection are called after natsConnection_destroy HOT 8
- Compile error on Linux HOT 1
- microEndpoint in microErrorHandler doesn't seem useful
- micro commands give parser errors on names HOT 1
- Request returns error status on callback, rather than from the method itself
- Please make the kvStore watcher async HOT 1
- natsConnection_SubscribeTimeout callback called twice having auto-unsubscribe after 1 message HOT 7
- nats c client hanging forever on natsConnection_PublishString HOT 1
- Support URL (%-) encoding in server URL strings
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 nats.c.