简体   繁体   中英

No such file or directory upon running the program via g++

So I downloaded this project off github but been having issues running the program via command line (have always used an IDE to do all the compilation, but i'm running on RPI so gotta rely on command line).

Following is the command that I ran with the output:

g++ -W -Wall -s receiver.cpp RF24/RF24.cpp
receiver.cpp:3:10: fatal error: RF24/RF24.h: No such file or directory
 #include <RF24/RF24.h>
          ^~~~~~~~~~~~~
compilation terminated.

Does anyone see what's potentially wrong?

Try g++ -I. to tell gcc to look for include paths in current directory

The full commandline - going by above

g++ -I. -W -Wall -s receiver.cpp RF24/RF24.cpp

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM