Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Compiling error when using gcc 5.3.0 #1

@kaiserd

Description

@kaiserd

I get the following error when compiling (gcc version 5.3.0):

../src/main.c:85:10:` error: variably modified ‘leader_host’ at file scope
     char leader_host[IP_STR_LEN];
          ^
../src/main.c:94:10: error: variably modified ‘host’ at file scope
     char `host[IP_STR_LEN];
          ^

The problem is IP_STR_LEN being variably defined.
For testing I used #define IP_STR_LEN 15, which made ticketd compile.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions