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

Undeclared variables. #44

Open
n0toose opened this issue May 4, 2019 · 1 comment
Open

Undeclared variables. #44

n0toose opened this issue May 4, 2019 · 1 comment

Comments

@n0toose
Copy link
Member

n0toose commented May 4, 2019

There are apparently some missing variables, and I can't figure out what these variables stand for in order to define them myself.

Here's the relevant CMake output;

/home/panos/projects/Basin/src/login_stage_handler.c:166:20: error: ‘playersToLoad’ undeclared (first use in this function)
     add_collection(playersToLoad, player);
                    ^~~~~~~~~~~~~
/home/panos/projects/Basin/src/login_stage_handler.c:394:54: error: ‘value’ undeclared (first use in this function)
             struct player* player = (struct player*) value;
                                                      ^~~~~
/home/panos/projects/Basin/src/login_stage_handler.c:393:38: error: ‘players’ undeclared (first use in this function); did you mean ‘player’?
             BEGIN_HASHMAP_ITERATION (players);
                                      ^~~~~~~
                                      player
/home/panos/projects/Basin/src/block.c:1800:106: error: ‘struct json_object’ has no member named ‘child_count’; did you mean ‘children’?
         bi->boundingBoxes = colls->child_count == 0 ? NULL : xmalloc(sizeof(struct boundingbox) * colls->child_count);
                                                                                                          ^~~~~~~~~~~
                                                                                                          children
/home/panos/projects/Basin/src/block.c:1761:5: warning: implicit declaration of function ‘freeJSON’; did you mean ‘free’? [-Wimplicit-function-declaration]
     freeJSON(&json);
     ^~~~~~~~

I'm currently working on this one.

/home/panos/projects/Basin/src/login_stage_handler.c:330:13: warning: implicit declaration of function ‘player_kick’; did you mean ‘player_tick’? [-Wimplicit-function-declaration]
             player_kick(player, "You have logged in from another location!");
             ^~~~~~~~~~~
@n0toose
Copy link
Member Author

n0toose commented May 4, 2019

Update: Fixed the last one in this pull request.

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

1 participant