Hi, I just get the TX1 board yesterday and I am trying to get access to GPIO. I found a GPIO code at https://github.com/jetsonhacks/jetsonGPIO, and I am trying to include that in my project. But error like below occurs if I use any function in side the header.
./src/runtime-cuda.o: In function `main': /home/ubuntu/Documents/runtime-cuda/Debug/../src/runtime-cuda.cu:92: undefined reference to `gpioExport(unsigned int)'
And I think the compiler does find the header, because I can use enum, define, variables, anything except functions. Can any body give me some idea about this?
PS: I am using the Nsight provided in newest Jetpack, and I add the header and source file into sample guide codes in Real time cuda which works fine if I do not use functions in headers
Also can I use visual studio as the compiler? I do see there is a Nsight for VS but I am not sure how to get it into cross compile mode.