<?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>Where is SdkDir defined?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73089/where-is-sdkdir-defined</link><description>Hello, I run a project in SES 4.30c with nRF5 SDK. I just got my computer updated by our IT-department, and now I get a compilation error on my first #include :-) I still have all include directories in &amp;quot;Options - Code - Preprocessor - User Include Directories</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Mar 2021 14:04:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73089/where-is-sdkdir-defined" /><item><title>RE: Where is SdkDir defined?</title><link>https://devzone.nordicsemi.com/thread/301465?ContentTypeID=1</link><pubDate>Tue, 23 Mar 2021 14:04:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:233b477f-927f-431a-afb0-17f8c8a391a1</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for confirming that it worked &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt; I didn&amp;#39;t know the path had to specified without quotation marks, so that&amp;#39;s good to know.&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Where is SdkDir defined?</title><link>https://devzone.nordicsemi.com/thread/301450?ContentTypeID=1</link><pubDate>Tue, 23 Mar 2021 13:51:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52aaf831-683c-48bb-8899-2289a2853708</guid><dc:creator>Lars M</dc:creator><description>&lt;p&gt;Hello Vidar,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Great, thanks! It solved the problem :-) But I discovered that it is important to use front-slash instead of back-slash (which I got when I copied the path from Windows explorer). And there must be no quotation mark around the path.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Lars&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Where is SdkDir defined?</title><link>https://devzone.nordicsemi.com/thread/301438?ContentTypeID=1</link><pubDate>Tue, 23 Mar 2021 13:26:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c32d9d6-70b9-4f7d-b47c-b9290f1fcb55</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello Lars,&lt;/p&gt;
&lt;p&gt;&amp;#39;ProjectDir&amp;#39; is one of the predefined variables SES uses - it&amp;#39;s set automatically based on the location of your *.emProject file. But &amp;quot;SdkDir&amp;quot; must be a user defined variable, and I guess it must have gotten deleted during the system update for some reason.&lt;/p&gt;
&lt;p&gt;You can define the &amp;quot;SdkDir&amp;quot; path in your project settings by adding it as a macro to the &amp;quot;common Solution&amp;quot; as shown below.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Adding the macro by editing the *.emProject file&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="xml"&gt;&amp;lt;configuration
    Name=&amp;quot;Debug&amp;quot;
    c_preprocessor_definitions=&amp;quot;DEBUG; DEBUG_NRF&amp;quot;
    gcc_optimization_level=&amp;quot;None&amp;quot; /&amp;gt;
&amp;lt;configuration
    Name=&amp;quot;Common&amp;quot;
    macros=&amp;quot;SdkDir=../nRF5_SDK_17.0.2&amp;quot; &amp;lt;-- Insert correct SDK path here
&amp;lt;/solution&amp;gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Or through the SES UI&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1616506242332v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>