namespace #42

Open
opened 2026-01-29 22:24:23 +00:00 by claunia · 0 comments
Owner

Originally created by @TeLLie on GitHub (Sep 23, 2021).

Hi
When compiling fluidsynth i get this errors:
C:/usr/lib/gcc/i686-pc-os2-emx/9/include-fixed/stdlib.h:107:19: error: expected initializer before '__dead2'
107 | void abort(void) __dead2;
| ^~~~~~~
C:/usr/lib/gcc/i686-pc-os2-emx/9/include-fixed/stdlib.h:108:15: error: expected initializer before '__pure2'
108 | int abs(int) __pure2;

and:

C:/usr/include/c++/9/cstdlib:130:11: error: '::abort' has not been declared
130 | using ::abort;
| ^~~~~
C:/usr/include/c++/9/cstdlib:145:11: error: '::div' has not been declared
145 | using ::div;
| ^~~
C:/usr/include/c++/9/cstdlib:146:11: error: '::exit' has not been declared
146 | using ::exit;

I ask Ko about this and he tell me:

namespace problem, c++ headers expect those functions to be in global namespace

Originally created by @TeLLie on GitHub (Sep 23, 2021). Hi When compiling fluidsynth i get this errors: C:/usr/lib/gcc/i686-pc-os2-emx/9/include-fixed/stdlib.h:107:19: error: expected initializer before '__dead2' 107 | void abort(void) __dead2; | ^~~~~~~ C:/usr/lib/gcc/i686-pc-os2-emx/9/include-fixed/stdlib.h:108:15: error: expected initializer before '__pure2' 108 | int abs(int) __pure2; and: C:/usr/include/c++/9/cstdlib:130:11: error: '::abort' has not been declared 130 | using ::abort; | ^~~~~ C:/usr/include/c++/9/cstdlib:145:11: error: '::div' has not been declared 145 | using ::div; | ^~~ C:/usr/include/c++/9/cstdlib:146:11: error: '::exit' has not been declared 146 | using ::exit; I ask Ko about this and he tell me: namespace problem, c++ headers expect those functions to be in global namespace
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bitwiseworks/gcc-os2#42