2 Replies Latest reply on Jun 21, 2017 4:22 PM by Intel Corporation

    How to change linker libraries?

    kbociurko

      Hello, I cannot find a way to change linker libraries in the Intel System Studio for IOT.

       

      There is the cpp.json file where I can change ldflags, but this change does nothing. After cleaning and building the build I still get the old set of libraries.

       

      Here is an example test case:

      1. new IOT project based on blink
      2. run it (it works - it's OK, it should)
      3. change -lmraa to -lXXXX in src/cpp.json, save it
      4. clean project
      5. run it (it works - FAIL, it should not)

      As you see, there is no change and the build succeeds, although it should fail.
      This is of course just an example case, I do not want to remove mraa, but add other libraries.

       

      Console output for building:

       

      19:24:31 **** Incremental Build of configuration Debug for project blink_all ****

      Info: Internal Builder is used for build

      docker exec -i 21a446fe1bc2b233337a9233bb972c7140c0ef13ec14f850c8ceaf3a9d274461 /bin/bash -c "cd /workspace/blink_all/Debug && i586-poky-linux-g++ -std=c++1y -I/usr/include/upm -I/usr/include/mraa -O0 -g3 -Wall -c -fmessage-length=0 --sysroot= -m32 -march=i586 -c -ffunction-sections -fdata-sections -o src/blink.o ../src/blink.cpp"

      docker exec -i 21a446fe1bc2b233337a9233bb972c7140c0ef13ec14f850c8ceaf3a9d274461 /bin/bash -c "cd /workspace/blink_all/Debug && i586-poky-linux-g++ --sysroot= -o blink_all src/blink.o -lmraa"