<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>nrf-ble-driver library inside visual studio dynamic library</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62978/nrf-ble-driver-library-inside-visual-studio-dynamic-library</link><description>Hello, 
 I integrated the nrf-ble-driver static library in a dynamic library that is going to be used in a Windows C# application (through a wrapper), as show the picture below (scenario B). 
 
 When the Dynamic library is build in Debug mode, the linker</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 26 Jun 2020 11:45:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62978/nrf-ble-driver-library-inside-visual-studio-dynamic-library" /><item><title>RE: nrf-ble-driver library inside visual studio dynamic library</title><link>https://devzone.nordicsemi.com/thread/257122?ContentTypeID=1</link><pubDate>Fri, 26 Jun 2020 11:45:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee7422df-7076-4a46-b9d0-605279502f66</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Sorry for providing the wrong link, that was exactly the post I intended to link! Yes, that was my conclusion as well. I was thinking that you may be able to build the library in debug mode if you build it yourself using the instructions on GitHub, but if you solved it using Scenario C, I suppose there is no need for that.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf-ble-driver library inside visual studio dynamic library</title><link>https://devzone.nordicsemi.com/thread/257117?ContentTypeID=1</link><pubDate>Fri, 26 Jun 2020 11:38:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1bca7d1e-4053-447d-998c-92e1c3736d2e</guid><dc:creator>Hu Lao</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for your feedback.&lt;/p&gt;
&lt;p&gt;According with the post in SO (in fact, was an author profile link where I found this&amp;nbsp;&lt;a href="https://stackoverflow.com/questions/7668200/error-lnk2038-mismatch-detected-for-iterator-debug-level-value-0-doesnt/7668644#7668644"&gt;link&lt;/a&gt;&amp;nbsp;which I suppose is the one you are referring to). It seem I&amp;#39;m mixing&amp;nbsp;&lt;span&gt;my code (from the custom DLL library) in debug mode with the&amp;nbsp;nrf-ble-driver-sd_api_v6-mt-static-4_1_1/lib static library which probably was build on&amp;nbsp;release mode.&amp;nbsp;It this your conclusion, right?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I didn&amp;#39;t built the library. I integrated the &lt;a href="https://github.com/NordicSemiconductor/pc-ble-driver/releases"&gt;prebuilt release&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In other hand, your comment&amp;nbsp;allows me to create an &lt;strong&gt;scenario C&lt;/strong&gt;, where the pc-ble-driver is linking with the non-static library (nrf-ble-driver-sd_api_v6-mt-4_1_1.lib)&amp;nbsp;in order build the Windows Application in debug mode. In this case, I would need to deploy the&amp;nbsp;&lt;strong&gt;custom DLL&lt;/strong&gt;&amp;nbsp;and the&amp;nbsp;&lt;strong&gt;nrf-ble-driver DLL&lt;/strong&gt;&amp;nbsp;as well.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf-ble-driver library inside visual studio dynamic library</title><link>https://devzone.nordicsemi.com/thread/256883?ContentTypeID=1</link><pubDate>Thu, 25 Jun 2020 11:33:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6da7982-f9b4-4da5-a38f-edb75a9f1334</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I believe &lt;a href="https://stackoverflow.com/users/516725/ajg85"&gt;this post&lt;/a&gt; explains the issue. Did you &lt;a href="https://github.com/NordicSemiconductor/pc-ble-driver#Compiling-pc-ble-driver-from-source"&gt;build the library yourself&lt;/a&gt; following the instructions in pc-ble-driver repository, or did you integrate it directly from the &lt;a href="https://github.com/NordicSemiconductor/pc-ble-driver/releases"&gt;prebuilt release&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>