JetsonGPIO(C++) compilation error

so ive been trying to make a simple LED blink program on the Jetson Nano using C++, i got this repo from which is simple to understand and use but it cant compile for some reason. Here’s the output to “g++ -o simple_out.cpp -lJetsonGPIO”

/usr/lib/gcc/aarch64-linux-gnu/7/…/…/…/aarch64-linux-gnu/Scrt1.o: In function _start': (.text+0x18): undefined reference to main’
(.text+0x1c): undefined reference to `main’
collect2: error: ld returned 1 exit status

hello yomuevans,

it seems you’re missing one component for outputting program name.
for example,

g++ -o your_program_name your_source_code.cpp -lJetsonGPIO

you should also debug into your source codes,
since such undefined reference compile failure usually means not matching function calls.