Closed cquijano closed 10 years ago
That's a case of variable declarations intermingled with code: SDCC will refuse to compile that. For instance:
static
size_t
coap_set_option_header(unsigned int delta, size_t length, uint8_t *buffer)
{
size_t written = 0;
buffer[0] = coap_option_nibble(delta)<<4 | coap_option_nibble(length);
/* avoids code duplication without function overhead */
unsigned int *x = δ
Here, the declaration of *x
follows a statement.
I've tried in the past to patch coap to make it build with SDCC but I vaguely remember stumbling across a different error which I didn't manage to figure out. Even if you do make it compile, I can suspect you'd run into stack overflow problems.
Hello I am a master student, I need to use the simulator cooja in contiki, I tried to simulate the examples coap-client-server-example.csc works well but applying make connect-router-cooja Refused connection If you guided me to do or to give me information if so thank you for your reading. cordially
2014-04-02 23:53 GMT+02:00 George Oikonomou notifications@github.com:
That's a case of variable declarations intermingled with code: SDCC will refuse to compile that. For instance:
static size_t coap_set_option_header(unsigned int delta, size_t length, uint8_t *buffer) { size_t written = 0;
buffer[0] = coap_option_nibble(delta)<<4 | coap_option_nibble(length);
/* avoids code duplication without function overhead / unsigned int x = δ
Here, the declaration of *x follows a statement.
I've tried in the past to patch coap to make it build with SDCC but I vaguely remember stumbling across a different error which I didn't manage to figure out. Even if you do make it compile, I can suspect you'd run into stack overflow problems.
Reply to this email directly or view it on GitHubhttps://github.com/contiki-os/contiki/issues/619#issuecomment-39388758 .
I wrote some changes to make it compile with (debuggin propouses, do not merge):
@cquijano I had a quick look at your branch and this is probably a good step forward.
I'm going to close this issue as a "question which was answered". If you manage to make things play nicely with 8051-based hardware, a pull request would be great.
Thanks!
CoAP do not compile with lastest versions of SDCC and Contiki: Contiki Version:
SDCC Version(Compiled as tutorial: https://github.com/contiki-os/contiki/wiki/8051-Requirements):
Thanks in advance.