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

Doesn't compile #4

Closed
MartynasZilinskas opened this issue May 27, 2015 · 1 comment
Closed

Doesn't compile #4

MartynasZilinskas opened this issue May 27, 2015 · 1 comment

Comments

@MartynasZilinskas
Copy link

  CC    toxbot.o
./src/toxbot.c: In function ‘load_tox’:
./src/toxbot.c:317:13: error: too many arguments to function ‘tox_new’
         m = tox_new(options, NULL, 0, &err);
             ^
In file included from ./src/toxbot.c:36:0:
/usr/local/include/tox/tox.h:615:6: note: declared here
 Tox *tox_new(const struct Tox_Options *options, TOX_ERR_NEW *error);
      ^
./src/toxbot.c:343:26: warning: passing argument 2 of ‘tox_new’ from incompatible pointer type
     m = tox_new(options, (uint8_t *) data, data_len, &err);
                          ^
In file included from ./src/toxbot.c:36:0:
/usr/local/include/tox/tox.h:615:6: note: expected ‘enum TOX_ERR_NEW *’ but argument is of type ‘uint8_t *’
 Tox *tox_new(const struct Tox_Options *options, TOX_ERR_NEW *error);
      ^
./src/toxbot.c:343:9: error: too many arguments to function ‘tox_new’
     m = tox_new(options, (uint8_t *) data, data_len, &err);
         ^
In file included from ./src/toxbot.c:36:0:
/usr/local/include/tox/tox.h:615:6: note: declared here
 Tox *tox_new(const struct Tox_Options *options, TOX_ERR_NEW *error);
      ^
Makefile:12: recipe for target 'toxbot.o' failed
make: *** [toxbot.o] Error 1

i compiled newest toxcore and ToxBox doesn't compile.

@JFreegman
Copy link
Owner

Should be fixed now.

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