Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
a3845 opened this issue Jan 10, 2021 · 1 comment
Open

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

a3845 opened this issue Jan 10, 2021 · 1 comment

Comments

@a3845
Copy link

a3845 commented Jan 10, 2021

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants