blockchainsllc / in3

The IN3 client (written in C).
https://in3.readthedocs.io/en/develop/index.html
Other
75 stars 24 forks source link

How do you install in3 for the C programming language? #27

Open a3845 opened 3 years ago

a3845 commented 3 years ago

Steps to reproduce

Try to install the in3 module for C. Follow these directions here: https://in3.readthedocs.io/en/develop/api-c.html#requirements Run the "make" command.

Expected behavior

I expect the make command to work to finish installing in3. This way I could use .c examples. Right now they fail when there is a reference to in3.

Actual behavior

I see this:


[ 52%] Built target crypto_o
[ 54%] Built target crypto
[ 57%] Built target init_o
[ 59%] Built target init
[ 61%] Building C object src/core/CMakeFiles/core_o.dir/client/nodelist.c.o
In file included from /opt/in3/c/src/core/client/../util/bytes.h:41:0,
                 from /opt/in3/c/src/core/client/client.h:45,
                 from /opt/in3/c/src/core/client/nodelist.h:41,
                 from /opt/in3/c/src/core/client/nodelist.c:35:
/opt/in3/c/src/core/client/nodelist.c:360:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_Bool’
 IN3_EXPORT_TEST bool in3_node_props_match(const in3_node_props_t np_config, const in3_node_props_t np) {
                 ^
/opt/in3/c/src/core/client/nodelist.c: In function ‘in3_node_list_fill_weight’:
/opt/in3/c/src/core/client/nodelist.c:414:10: warning: implicit declaration of function ‘in3_node_props_match’; did you mean ‘in3_node_props_matches’? [-Wimplicit-function-declaration]
     if (!in3_node_props_match(filter.props, node_def->props)) continue;
          ^~~~~~~~~~~~~~~~~~~~
          in3_node_props_matches

System configuration

Ubuntu 18.04.5 LTS. gcc 7.5.0

Incubed version

Trying to use 3.1.2.

Request

How do I install in3 for the C programming language?

Incubed Configuration

Chain

simon-jentzsch commented 3 years ago

This should be fixed. Can you try with the latest version?