0

I am new to C++. I built code from a repo using this command:

g++ -Wall -g -std=c++11 -I/Users/asi/anaconda3/pkgs/libopencv-3.4.2-h7c891bd_1/include -c -o RPPG.o RPPG.cpp -o Heartbeat

There were no errors. However, when I run:

$ ./Heartbeat

I get the error: -bash: ./Heartbeat: Permission denied

I am on a Mac. What am I doing wrong?

EDIT

I removed -c -o RPPG.o, so that the command is now:

g++ -Wall -g -std=c++11 -I/Users/asi/anaconda3/pkgs/libopencv-3.4.2-h7c891bd_1/include RPPG.cpp -o Heartbeat

But that gives me this error (i removed a bunch of the middle output as it was too big to post:

Undefined symbols for architecture x86_64:

      RPPG::extractSignal_xminay() in RPPG-297942.o
      cv::Mat_<double>::operator=(cv::Mat&&) in RPPG-297942.o
  "_main", referenced from:
     implicit entry/start for main executable
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Bensuperpc
  • 1,275
  • 1
  • 14
  • 21
connor449
  • 1,549
  • 2
  • 18
  • 49

0 Answers0