Skip to content

std99 pb within whereami #1494

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

Closed
alaingdl opened this issue Jan 25, 2023 · 1 comment
Closed

std99 pb within whereami #1494

alaingdl opened this issue Jan 25, 2023 · 1 comment

Comments

@alaingdl
Copy link
Contributor

On a centos7 up-to-date, I have the problem :

[ 15%] Building C object src/CMakeFiles/whereami.dir/whereami/src/whereami.c.o
/home/alaingdl/GDL/gdl-1.0.2git230125/src/whereami/src/whereami.c: In function ‘wai_getModulePath’:
/home/alaingdl/GDL/gdl-1.0.2git230125/src/whereami/src/whereami.c:259:3: erreur: ‘for’ loop initial declarations are only allowed in C99 mode
   for (int r = 0; r < WAI_PROC_SELF_MAPS_RETRY; ++r)
   ^
/home/alaingdl/GDL/gdl-1.0.2git230125/src/whereami/src/whereami.c:259:3: note: use option -std=c99 or -std=gnu99 to compile your code

I don't have this problem on other OS

I not sure how to change/force flags because the flags (conservatives) in "whereami" are not the flags we may would like to use outside.

@slayoo
Copy link
Member

slayoo commented Jan 26, 2023

@alaingdl Please check if this would help: #1497

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

3 participants