Git Product home page Git Product logo

Comments (4)

joseph-henry avatar joseph-henry commented on August 19, 2024

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.

fnoop avatar fnoop commented on August 19, 2024

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.

joseph-henry avatar joseph-henry commented on August 19, 2024

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.

fnoop avatar fnoop commented on August 19, 2024

Works great now, thanks!

from libzt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.