markniu / PandaPi

3d printer firmware run on raspberry pi directly
215 stars 30 forks source link

Error on compiling: expected unqualified-id before numeric constant #41

Open AmEv7Fam opened 2 years ago

AmEv7Fam commented 2 years ago

Upon trying to compile the latest build, I get this error:

stderr:In file included from /usr/include/aarch64-linux-gnu/bits/fcntl.h:61,
                 from /usr/include/fcntl.h:35,
                 from src/MarlinCore.cpp:63:
src/sd/SdBaseFile.h: At global scope:
src/sd/SdBaseFile.h:51:15: error: expected unqualified-id before numeric constant
               O_RDONLY = O_READ,                // open() oflag - same as O_IN
               ^~~~~~~~

A quick google search brought up this, which suggest that it may be a conflict between Wi-Fi and SD libraries... which we may not need???