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

Incompatibility with the c2x standard #26

Open
Nizarll opened this issue May 17, 2024 · 0 comments
Open

Incompatibility with the c2x standard #26

Nizarll opened this issue May 17, 2024 · 0 comments
Labels

Comments

@Nizarll
Copy link

Nizarll commented May 17, 2024

root@vps103211:~/projects# gcc -c src/nnetwork.c -o obj/nnetwork.o -lhashmap
root@vps103211:~/projects# gcc -c src/nnetwork.c -o obj/nnetwork.o -lhashmap --std=c2x
In file included from src/../libs/nnetwork.h:5,
                 from src/nnetwork.c:1:
src/nnetwork.c: In functioninit’:
src/nnetwork.c:19:3: error: expected ‘;’ before__map_hash19 |   hashmap_init(&map1, hashmap_hash_string, strcmp);
      |   ^~~~~~~~~~~~
src/nnetwork.c:19:3: error: expected ‘;’ before__map_compare19 |   hashmap_init(&map1, hashmap_hash_string, strcmp);
      |   ^~~~~~~~~~~~
src/nnetwork.c:19:3: error: ‘__map_hashundeclared (first use in this function)
   19 |   hashmap_init(&map1, hashmap_hash_string, strcmp);
      |   ^~~~~~~~~~~~
src/nnetwork.c:19:3: note: each undeclared identifier is reported only once for each function it appears in
src/nnetwork.c:19:3: error: ‘__map_compareundeclared (first use in this function)
   19 |   hashmap_init(&map1, hashmap_hash_string, strcmp);
      |   ^~~~~~~~~~~~
root@vps103211:~/projects#
@DavidLeeds DavidLeeds added the bug label Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants