<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/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/"><channel><title>fatal error  &amp;quot;modbus.c&amp;quot; not found</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/33981/fatal-error-modbus-c-not-found</link><description> 
Dear Sir 

 
I add a modbus.c file to Example/User on project. In main.c i
#include &amp;quot;modbus.c&amp;quot;, but an fatal error &amp;quot;modbus.c&amp;quot; file not found
happened. 

 
could you please teach me how can i solve it. 

 
Thanks you very much. 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: fatal error  "modbus.c" not found</title><link>https://community.arm.com/thread/93851?ContentTypeID=1</link><pubDate>Sun, 25 Dec 2016 06:28:26 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:bad305d0-a27a-4435-aa64-e904b6f3d4db</guid><dc:creator>Westonsupermare Pier</dc:creator><description>&lt;p&gt;&lt;p&gt;
Try using &amp;quot;add existing file to project&amp;quot; to add the file into the
compilation.&lt;/p&gt;

&lt;p&gt;
Using #include .C files is not without precedence, but if it can&amp;#39;t
find the file you should review the Include Path settings to confirm
the directory the file is in gets searched.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: fatal error  "modbus.c" not found</title><link>https://community.arm.com/thread/69736?ContentTypeID=1</link><pubDate>Sun, 25 Dec 2016 05:38:39 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:4a21c73e-753f-4637-950e-a90dfb87aedd</guid><dc:creator>edPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
Maybe you could tell us what book recommends &amp;quot;include&amp;quot; of a *.c
file?&lt;/p&gt;

&lt;p&gt;
Good books would describe the difference between *.c and *.h (i.e.
header files).&lt;/p&gt;

&lt;p&gt;
Next thing - the compiler requires the existence of the files. And
the compiler manual describes where the compiler will look for
files.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>