This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

What is the difference between nrf-ble-driver-sd_api_v6-mt-4_1_1.lib and nrf-ble-driver-sd_api_v6-mt-static-4_1_1.lib?

I first assumed the obvious that the first library would be used with the (Visual studio) multi-threaded DLL/MD option and the second would be used with the multi-threaded/MT option. However, I can only build with the multi-threaded DLL/MD option and I only use the static library. I do not include the other library.

I would like to build a stand-alone exe that does not depend upon MS redistributables.

  • How would I build a static exe that does not depend upon MS redistributables (everything else I have does NOT require redistributables)?
  • How are the two different libraries used and when do I use one versus the other or shall I use both?
Parents Reply
  • I could NOT successfully built my app using the pc-ble-driver static library with VS setting the build options to use static linking. From your statement above (if I understand it correctly) is that the 'static' pc-ble-driver is NOT built using static linking so in order to do what I want to do, I would have to build the library myself using static linking.

    I tried for two weeks when I first received the dongle (many moons ago) to build that library in VS and never succeeded and gave up. I was hoping I could get such a library!

Children
Related