rcelyte / BeatUpRcelyte

A lightweight modded Beat Saber multiplayer server
The Unlicense
16 stars 5 forks source link

unable to compile because of this error #3

Closed keganpowers34 closed 2 years ago

keganpowers34 commented 2 years ago

src/log.h:30:1: error: expected identifier or ‘(’ before ‘[’ token 30 | [[maybe_unused]] static void uprintf(const char *format, ...) {

gen.c:174:1: error: expected identifier or ‘(’ before ‘[’ token 174 | [[nodiscard]] static const char parse_struct_fields(const char it, uint32_t indent, bool insideSwitch) {

gen.c:229:1: error: expected identifier or ‘(’ before ‘[’ token 229 | [[nodiscard]] static const char parse_struct(const char it) {

gen.c:244:1: error: expected identifier or ‘(’ before ‘[’ token 244 | [[nodiscard]] static const char parse_enum(const char it) {

rcelyte commented 2 years ago

What compiler are you using? What operating system are you on?

keganpowers34 commented 2 years ago

i am using makes default and i am on ubuntus latest version

rcelyte commented 2 years ago

What does cc --version return?

keganpowers34 commented 2 years ago

cc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0

keganpowers34 commented 2 years ago

What compiler should I be using?

rcelyte commented 2 years ago

Your compiler is too old. I would suggest installing Clang and building with make CC=clang NATIVE_CC=clang

keganpowers34 commented 2 years ago

I git pulled and ran the command and it runs successfully thank you