title: symbol lookup error: undefined symbol: gpiod_line_set_direction_input
body: <p>I am trying to compile the libgpiod tutorial with Eclipse. The program compiles fine, but when I run it I get the following error below:</p>
  <p><strong>gcc Compiler and linker parameters are like this:</strong></p>
  <pre><code>Building file: ../src/Maax-B-C.cpp
  Invoking: Cross G++ Compiler
  aarch64-none-linux-gnu-g++ -I&quot;/home/ubu/eclipse-workspace/Maax-B-C/include&quot; -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF&quot;src/Maax-B-C.d&quot; -MT&quot;src/Maax-B-C.o&quot; -o &quot;src/Maax-B-C.o&quot; &quot;../src/Maax-B-C.cpp&quot;
  Finished building: ../src/Maax-B-C.cpp
   
  Building target: Maax-B-C
  Invoking: Cross G++ Linker
  aarch64-none-linux-gnu-g++ -L&quot;/home/ubu/eclipse-workspace/Maax-B-C/lib&quot; -o &quot;Maax-B-C&quot;  ./src/Maax-B-C.o   -lgpiod
  Finished building target: Maax-B-C
  </code></pre>
  <p><strong>Runtime error:</strong></p>
  <pre><code>./Maax-B-C: symbol lookup error: ./Maax-B-C: undefined symbol: gpiod_line_set_direction_input
  </code></pre>
  <p>other functions of the libgpiod is working well such as: gpiod_chip_open, gpiod_chip_get_line
  I also tried compiling the same code in the target os, it was a success but when I run the code, I came across with same error output.</p>
  <p>library(libgpiod.so) and gpiod.h also have functions' prototype and symbols were exported:</p>
  <pre><code>nm -D libgpiod.so | grep &quot;gpiod_line_set_direction_input&quot;
  </code></pre>
  <pre><code>00000000000034c0 T gpiod_line_set_direction_input
  00000000000034d0 T gpiod_line_set_direction_input_bulk
  </code></pre>
  <pre><code> nm -D libgpiod.so | grep &quot;gpiod_line_request_output&quot;
  
  </code></pre>
  <pre><code>00000000000039c0 T gpiod_line_request_output
  0000000000003a10 T gpiod_line_request_output_flags
  </code></pre>
  <p>What is your suggestion to fix this problem?</p>
  <p>Thank you.</p>