Skip to content

Instantly share code, notes, and snippets.

@Technicus
Created July 13, 2016 05:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Technicus/84a51de81e460e07d6a0d33cda29acec to your computer and use it in GitHub Desktop.
Save Technicus/84a51de81e460e07d6a0d33cda29acec to your computer and use it in GitHub Desktop.
DS4driver Intel Edison Compile
Git source = < https://github.com/TXBDan/DS4driver >
/DS4driver# g++ main.cpp -o d4 -lmraa
main.cpp: In function 'int main()':
main.cpp:26:35: warning: comparison between 'enum mraa::Result' and 'enum mraa_result_t' [-Wenum-compare]
if (d_pin->dir(mraa::DIR_OUT) != MRAA_SUCCESS) {
^
/tmp/ccrS03EX.o: In function `main':
main.cpp:(.text+0xc2): undefined reference to `DS4driver::DS4driver()'
main.cpp:(.text+0xd6): undefined reference to `DS4driver::init(char const*)'
main.cpp:(.text+0x10b): undefined reference to `DS4driver::update()'
collect2: error: ld returned 1 exit status
@Technicus
Copy link
Author

g++ main.cpp DS4driver.cpp -o d4 -lmraa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment