<?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>undefined reference</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109351/undefined-reference</link><description>Hello everyone I hope you are well, 
 I am trying to use e-paper screen with pca10040 devkit however, 
 I would like to ask a question about how can I fix undefined reference to `nrf_gfx_init&amp;#39; problem 
 
 I take the nrf_gfx.h and .c file into a a file</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 17 Mar 2024 01:07:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109351/undefined-reference" /><item><title>RE: undefined reference</title><link>https://devzone.nordicsemi.com/thread/474174?ContentTypeID=1</link><pubDate>Sun, 17 Mar 2024 01:07:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d734169d-2151-4d93-85e4-f609b72f9096</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;An issue caused by unfortunate obfuscation choices, use of ## and so on; one reason (in my view) why the SDK was abandoned.&lt;/p&gt;
&lt;p&gt;The likely cause of the error is &amp;quot;&lt;em&gt;NRF_GFX_ENABLED&lt;/em&gt;&amp;quot; in &lt;em&gt;sdk_config.h&lt;/em&gt; being &amp;#39;0&amp;#39;, simply change it to &amp;#39;1&amp;#39;.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt; Directory of D:\Projects\Nordic\nRF5_SDK_17.1.0_ddde560\examples\ble_central\ble_app_hrs_c\pca10040\ser_s132_hci\config
sdk_config.h
// &amp;lt;q&amp;gt; NRF_GFX_ENABLED  - nrf_gfx - GFX module
#ifndef NRF_GFX_ENABLED
#define NRF_GFX_ENABLED 0&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Finding this and other similar issue can be a pain: I use a batch search script along these lines:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="batchfile"&gt;local
rem: Project Source File Search Utility
rem:
rem: Author - Hugh
rem:
rem: &amp;quot;find&amp;quot; can get lost, use specific path
SET path=C:\Windows\System32\;%path%
rem:
rem: Setup output file and initialise it
set OutputFile=f.txt
@echo f1.bat output                  &amp;gt; %OutputFile%
for /R %%f in (sdk_config.h) DO (
dir /W %%f | find /I &amp;quot;examples&amp;quot;     &amp;gt;&amp;gt; %OutputFile%
dir /B %%f                          &amp;gt;&amp;gt; %OutputFile%
type %%f | find /I &amp;quot;gfx&amp;quot;            &amp;gt;&amp;gt; %OutputFile%
)
rem: To search all source files use something like this:
rem: for /R %%f in (*.c *.h *.eww *.ewp *.uvmpw *.uvproj *.xml *.emProject) DO (
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>