Skip to content

Commit

Permalink
test linkage: add zmq libs
Browse files Browse the repository at this point in the history
  • Loading branch information
DeckerSU committed Mar 10, 2024
1 parent db21ec8 commit a822a5d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,7 @@ test_linkage_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS)
test_linkage_LDADD = \
$(LIBBITCOIN_COMMON) \
$(LIBCJSON) \
$(ZMQ_LIBS) \
-lcurl
bin_PROGRAMS += test-linkage

Expand Down
6 changes: 6 additions & 0 deletions src/test-linkage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

#include "komodo_cJSON.h"
#include "hex.h"
#include <zmq.h>

char *CClib_name(); // cclib.cpp (no interface)

Expand Down Expand Up @@ -50,6 +51,11 @@ int main(int argc, char* argv[])
decode_hex((uint8_t *)byteArray.get(), len / 2, hexString);
std::cerr << "Decoded hex: '" << byteArray.get() << "'" << std::endl;

// libzmq test
int zmq_major, zmq_minor, zmq_patch;
zmq_version(&zmq_major, &zmq_minor, &zmq_patch);
std::cout << "ZeroMQ version: " << zmq_major << "." << zmq_minor << "." << zmq_patch << std::endl;

// std::cout << "CClib name: " << CClib_name() << std::endl;
// nb! libcc can't be added without bitcoin_server and other dependencies

Expand Down

0 comments on commit a822a5d

Please sign in to comment.