Comments (4)
Fixed and pushed to edge
branch. Once I test this on other platforms I'll push into dev
and eventually master
.
The libzt
target in CMakeLists.txt
was missing a link reference to pthreads
which seems to only be a problem on Ubuntu.
Thanks for pointing this out.
from libzt.
Close!
[100%] Building CXX object CMakeFiles/ipv4client.dir/examples/bindings/cpp/ipv4simple/ipv4client.cpp.o
/usr/bin/c++ -I/srv/maverick/software/libzt/ext/lwip/src/include -I/srv/maverick/software/libzt/ext/lwip-contrib/ports/unix/port/include -I/srv/maverick/software/libzt/zto/include -I/srv/maverick/software/libzt/zto/osdep -I/srv/maverick/software/libzt/zto/node -I/srv/maverick/software/libzt/zto/service -I/srv/maverick/software/libzt/src -I/srv/maverick/software/libzt/include -fvisibility=hidden -fstack-protector -DZT_SDK=1 -std=c++11 -g -fvisibility=hidden -fstack-protector -DZT_SDK=1 -std=c++11 -g -DLIBZT_TRACE=1 -DLIBZT_DEBUG=1 -DNS_TRACE=1 -DNS_DEBUG=1 -o CMakeFiles/ipv4client.dir/examples/bindings/cpp/ipv4simple/ipv4client.cpp.o -c /srv/maverick/software/libzt/examples/bindings/cpp/ipv4simple/ipv4client.cpp
/srv/maverick/software/libzt/examples/bindings/cpp/ipv4simple/ipv4client.cpp: In function ‘int main(int, char**)’:
/srv/maverick/software/libzt/examples/bindings/cpp/ipv4simple/ipv4client.cpp:71:28: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
printf("nwid=%llx\n", nwid);
^
In file included from /srv/maverick/software/libzt/include/libzt.h:36:0,
from /srv/maverick/software/libzt/examples/bindings/cpp/ipv4simple/ipv4client.cpp:43:
/srv/maverick/software/libzt/include/libztDebug.h:124:72: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 7 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
ZT_RESET, ZT_THREAD_ID, ZT_FILENAME, __LINE__, __FUNCTION__, ##args)
^
/srv/maverick/software/libzt/examples/bindings/cpp/ipv4simple/ipv4client.cpp:74:2: note: in expansion of macro ‘DEBUG_TEST’
DEBUG_TEST("I am %llx", nodeId);
^
[100%] Linking CXX executable ../bin/ipv4client
/usr/bin/cmake -E cmake_link_script CMakeFiles/ipv4client.dir/link.txt --verbose=1
/usr/bin/c++ -fvisibility=hidden -fstack-protector -DZT_SDK=1 -std=c++11 -g -fvisibility=hidden -fstack-protector -DZT_SDK=1 -std=c++11 -g -DLIBZT_TRACE=1 -DLIBZT_DEBUG=1 -DNS_TRACE=1 -DNS_DEBUG=1 CMakeFiles/ipv4client.dir/examples/bindings/cpp/ipv4simple/ipv4client.cpp.o -o ../bin/ipv4client -rdynamic -lpthread ../bin/lib/liblwip.a ../bin/lib/libzto.a ../bin/lib/libzt.a ../bin/lib/libzto.a ../bin/lib/libzt.a ../bin/lib/libhttp.a -lpthread ../bin/lib/liblwip.a
make[2]: Leaving directory '/srv/maverick/software/libzt/build'
[100%] Built target ipv4client
make[1]: Leaving directory '/srv/maverick/software/libzt/build'
/usr/bin/cmake -E cmake_progress_start /srv/maverick/software/libzt/build/CMakeFiles 0
from libzt.
Thanks. Looks like those are just warnings, but I had some sloppy format specifiers I've fixed and pushed to edge
, should take care of this problem. Additionally, I've written a short dynamic/shared library example in examples/bindings/cpp/sharedlib
. You'll have to swap out the .dylib
filename for .so
of course.
Let me know if you run into anything else.
from libzt.
Works great now, thanks!
from libzt.
Related Issues (20)
- Python: Circular import error HOT 1
- How do I get the addresses of other users on the peer network? HOT 2
- Socket error: connect, 0 HOT 3
- there's a typo in README.md link
- Can't do pip install libzt HOT 6
- Feature Request: Golang binding HOT 1
- Android build: No implementation found for int com.zerotier.sockets.ZeroTierNative.zts_init() HOT 6
- Working for .NET? HOT 4
- AsyncRead & AsyncWrite support for TcpStream in Tcp.rs (Rust)
- Add arch detection for musl
- iOS build failed HOT 1
- Remove unnecessary null pointer checks
- The tutorial Python is full of errors HOT 2
- ARM: ZeroTier incorrectly assumes ArmV8A Crypto Extension is available HOT 3
- unable receive tcp / udp on the Android platform HOT 2
- malloc/free issues in latest release on linux HOT 8
- Memory issue with TCP and IPv6 HOT 3
- {System.DllNotFoundException: libzt assembly:<unknown assembly> type:<unknown type> member:(null) at (wrapper managed-to-native) ZeroTier.Core.Node.zts_init_from_storage(string)
- Rust/Windows Support HOT 1
- Rust crate returns arbitrary numeric error codes instead of `Result` instances in some cases
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 libzt.