HiroshiFuu / Lepton_FFC

Perfrom FFC operation on FLiR Lepton
0 stars 0 forks source link

error: linker command failed #1

Open Jens1503 opened 5 years ago

Jens1503 commented 5 years ago

Hi!

I tried to run compile the FFC script but got an error. Any idea of what I am doing wrong? I have a Mac OS and the purethermal 2 mikro-usb board with a lepton 3.5.

The first line is the comand for compiling I use in Terminal, the rest is the return.

gcc Lepton_FFC.c -o test
Undefined symbols for architecture x86_64:
  "_LEP_OpenPort", referenced from:
      _lepton_connect in Lepton_FFC-cf36e9.o
  "_LEP_RunSysFFCNormalization", referenced from:
      _main in Lepton_FFC-cf36e9.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
HiroshiFuu commented 5 years ago

Sorry for the late reply. I used this on RPi, so I think you can try to use g++ instead of gcc or change the C++ Standard Library from the default libc++ to libstdc++.