Comments (2)
Hey, I am sorry my poor readme bother you, I will complete it soon.
If you are in a harry, you can clone this repo,
and install it, then run cmake && make to compile it.
from nano-bench.
Maybe you should sync to upstream latest nanomq:nng
Or some error would happen ...
➜ build git:(main) ✗ make
[ 33%] Building C object CMakeFiles/nano_bench.dir/mqtt_async.c.o
/home/wangha/docu/git/nano-bench/mqtt_async.c: In function ‘nnb_connect’:
/home/wangha/docu/git/nano-bench/mqtt_async.c:298:2: error: too many arguments to function ‘nng_dialer_set_cb’
298 | nng_dialer_set_cb(dialer, connect_cb, NULL);
| ^~~~~~~~~~~~~~~~~
In file included from /usr/local/include/nng/mqtt/mqtt_client.h:39,
from /home/wangha/docu/git/nano-bench/nnb_opt.h:11,
from /home/wangha/docu/git/nano-bench/mqtt_async.c:2:
/usr/local/include/nng/nng.h:291:14: note: declared here
291 | NNG_DECL int nng_dialer_set_cb(nng_dialer, void *);
| ^~~~~~~~~~~~~~~~~
/home/wangha/docu/git/nano-bench/mqtt_async.c: In function ‘nnb_subscribe’:
/home/wangha/docu/git/nano-bench/mqtt_async.c:351:2: error: too many arguments to function ‘nng_dialer_set_cb’
351 | nng_dialer_set_cb(dialer, connect_cb, (void *) opt);
| ^~~~~~~~~~~~~~~~~
In file included from /usr/local/include/nng/mqtt/mqtt_client.h:39,
from /home/wangha/docu/git/nano-bench/nnb_opt.h:11,
from /home/wangha/docu/git/nano-bench/mqtt_async.c:2:
/usr/local/include/nng/nng.h:291:14: note: declared here
291 | NNG_DECL int nng_dialer_set_cb(nng_dialer, void *);
| ^~~~~~~~~~~~~~~~~
/home/wangha/docu/git/nano-bench/mqtt_async.c: In function ‘nnb_publish’:
/home/wangha/docu/git/nano-bench/mqtt_async.c:409:2: error: too many arguments to function ‘nng_dialer_set_cb’
409 | nng_dialer_set_cb(dialer, connect_cb, (void *) opt);
| ^~~~~~~~~~~~~~~~~
In file included from /usr/local/include/nng/mqtt/mqtt_client.h:39,
from /home/wangha/docu/git/nano-bench/nnb_opt.h:11,
from /home/wangha/docu/git/nano-bench/mqtt_async.c:2:
/usr/local/include/nng/nng.h:291:14: note: declared here
291 | NNG_DECL int nng_dialer_set_cb(nng_dialer, void *);
| ^~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/nano_bench.dir/build.make:63: CMakeFiles/nano_bench.dir/mqtt_async.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/nano_bench.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
from nano-bench.
Related Issues (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 nano-bench.