<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Header- / Source-file related question in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Header-Source-file-related-question/m-p/578150#M23503</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Caradhras on Mon Apr 09 15:42:14 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i got a question that may be little bit stupid but i dont find my fault.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to create a source-file/header-file-combo, which will be included into main.c and provides functions and defines for an external chip, which is connected to the LPC via i2c.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So i included the i2c.h into mylib.c, aswell as mylib.h. mylib.h is included to main.c. To have access to the global variables, i2c.h is also included to main.c.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is, defines from i2c.h cannot be used in mylib.c, even though they are correctly included and lying in the same folder! I dont unterstand this error!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Help! :(&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 01:14:16 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T01:14:16Z</dc:date>
    <item>
      <title>Header- / Source-file related question</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Header-Source-file-related-question/m-p/578150#M23503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Caradhras on Mon Apr 09 15:42:14 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i got a question that may be little bit stupid but i dont find my fault.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to create a source-file/header-file-combo, which will be included into main.c and provides functions and defines for an external chip, which is connected to the LPC via i2c.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So i included the i2c.h into mylib.c, aswell as mylib.h. mylib.h is included to main.c. To have access to the global variables, i2c.h is also included to main.c.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is, defines from i2c.h cannot be used in mylib.c, even though they are correctly included and lying in the same folder! I dont unterstand this error!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Help! :(&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:14:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Header-Source-file-related-question/m-p/578150#M23503</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Header- / Source-file related question</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Header-Source-file-related-question/m-p/578151#M23504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Mon Apr 09 18:44:17 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;#1 Create a new Source Folder with (Right-Click on Project) New-&amp;gt;Source Folder and put your Source / Header files in there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#2 Then add it's relative path with "../MyNewSourceFolderName" in (Right-Click on Project) Properties -&amp;gt; C/C++ Build -&amp;gt; Settings -&amp;gt; Tool Settings -&amp;gt; MCU C Compiler -&amp;gt; Includes&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#3 A lot of samples (NXP_LPCXpresso11C24_2011-01-27.zip) show how this works. If your Project Explorer shows a Subdirectory icon with a little 'C' this is a Source Folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#4 If you don't know why your settings don't work, export and post your project. Otherwise it's difficult to understand what you've done exactly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:14:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Header-Source-file-related-question/m-p/578151#M23504</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Header- / Source-file related question</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Header-Source-file-related-question/m-p/578152#M23505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Caradhras on Tue Apr 10 15:02:04 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;hmm,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i did a test with your directions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. created folder "driver_IRTe" in the main project folder (i also tried with create source folder to get the little c, but result was the same.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. went to properties and added this to the list of included folders. it now says:&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
../cmsis
"${workspace_loc:/${ProjName}/driver_IRTe}"
../config
../driver
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;3.created test.c and test.h in driver_IRTe, Contents:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;test.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
#include "test.h"
#include "stdint.h"

uin32_t blub( uint32_t blub )
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; return blub;
}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;test.h&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
#ifndef __TEST_H
#define __TEST_H

uin32_t blub( uint32_t blub );

#endif
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;4. i included test.h into main.c and put the function call:&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;i = blub((uint32_t) 5);&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;5. This is what the compiler says:&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
C:\Users\username\Documents\LPCXpresso_4.1.5_219\workspace_i2c&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;path&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;\driver_IRTe/test.h:4:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'blub'
../src/main.c: In function 'main':
../src/main.c:245:2: warning: implicit declaration of function 'blub'
make: *** [src/main.o] Error 1
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is the explanation sufficient?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:14:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Header-Source-file-related-question/m-p/578152#M23505</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Header- / Source-file related question</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Header-Source-file-related-question/m-p/578153#M23506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Tue Apr 10 15:30:17 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;As already explained above:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#1 Without 'Source Folder' your folder content will not be compiled, so please use 'Source Folder' :confused:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#2 Your compiler is explaining you what's wrong here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;.../test.h:4:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'blub'&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;Do you understand that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;'[B][COLOR=Red]uin32_t[/COLOR][/B]' is unknown in test.h, so this an error and a complete different issue :eek:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:14:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Header-Source-file-related-question/m-p/578153#M23506</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Header- / Source-file related question</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Header-Source-file-related-question/m-p/578154#M23507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Caradhras on Tue Apr 10 15:34:11 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;hmm i see, but this doesnt work either:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;test.h&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
#ifndef __TEST_H
#define __TEST_H

#include "stdint.h"

uin32_t blub( uint32_t blub );

#endif
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;result:&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
driver_IRTe/test.h:6:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'blub'

../src/main.c:245:2: warning: implicit declaration of function 'blub'
make: *** [src/main.o] Error 1
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;:confused:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:14:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Header-Source-file-related-question/m-p/578154#M23507</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Header- / Source-file related question</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Header-Source-file-related-question/m-p/578155#M23508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Tue Apr 10 15:38:22 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;What is 'uin32_t ':confused:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Either you correct it to uin[SIZE=7][B][COLOR=Red]t[/COLOR][/B][/SIZE]32_t or you explain it to your compiler :rolleyes:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:14:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Header-Source-file-related-question/m-p/578155#M23508</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Header- / Source-file related question</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Header-Source-file-related-question/m-p/578156#M23509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Caradhras on Tue Apr 10 15:42:48 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;*facepalm*&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:14:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Header-Source-file-related-question/m-p/578156#M23509</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Header- / Source-file related question</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Header-Source-file-related-question/m-p/578157#M23510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Caradhras on Tue Apr 10 15:49:36 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;*facepalm*&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ok, back to the original problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i now add the line:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#include "i2c.h"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from the NXP examples driver section. In the mentioned header i find this define:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define BUFSIZE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 64&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;now i modifiy my test.c to this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
#include "test.h"
#include "stdint.h"
#include "i2c.h"

uint32_t blub( uint32_t blub )
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; return blub*BUFSIZE;
}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;Problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
../driver_IRTe/test.c:9:14: error: 'BUFSIZE' undeclared (first use in this function)
../driver_IRTe/test.c:9:14: note: each undeclared identifier is reported only once for each function it appears in
../driver_IRTe/test.c:10:1: warning: control reaches end of non-void function
make: *** [driver_IRTe/test.o] Error 1
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;So where do i find my facepalm here? Thanks for your patience! &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:14:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Header-Source-file-related-question/m-p/578157#M23510</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Header- / Source-file related question</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Header-Source-file-related-question/m-p/578158#M23511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheFallGuy on Wed Apr 11 00:37:46 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Please post the complete output from the console build log, so we can see all the options to the compiler and all messages.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:14:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Header-Source-file-related-question/m-p/578158#M23511</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Header- / Source-file related question</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Header-Source-file-related-question/m-p/578159#M23512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ArneB on Wed Apr 11 01:00:07 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Caradhras,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;please have a look at the first lines of your i2c.h file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;#if CONFIG_ENABLE_DRIVER_I2C==1&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;If this #define is not set, it will skip the whole i2c header file (including the #define BUFSIZE 64), resulting in an compile error.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:14:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Header-Source-file-related-question/m-p/578159#M23512</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Header- / Source-file related question</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Header-Source-file-related-question/m-p/578160#M23513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Caradhras on Wed Apr 11 01:05:45 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;@arneb:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi, the define is definately set in the driver_config.h. Otherwise my i2c-interface wouldnt work (what it does).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/105865"&gt;@thefallguy&lt;/a&gt;:&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
Building file: ../driver_IRTe/test.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -D__REDLIB__ -D__USE_CMSIS -DDEBUG -D__CODE_RED -I../cmsis -I"C:\&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;path&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;\driver_IRTe" -I../config -I../driver -O0 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m0 -mthumb -MMD -MP -MF"driver_IRTe/test.d" -MT"driver_IRTe/test.d" -o"driver_IRTe/test.o" "../driver_IRTe/test.c"
../driver_IRTe/test.c: In function 'blub':
../driver_IRTe/test.c:9:15: error: 'BUFSIZE' undeclared (first use in this function)
../driver_IRTe/test.c:9:15: note: each undeclared identifier is reported only once for each function it appears in
../driver_IRTe/test.c:10:1: warning: control reaches end of non-void function
make: *** [driver_IRTe/test.o] Error 1
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;here you go &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt; Its pretty much default lpcxpresso settings.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:14:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Header-Source-file-related-question/m-p/578160#M23513</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: Header- / Source-file related question</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Header-Source-file-related-question/m-p/578161#M23514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Wed Apr 11 01:43:15 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;As mentioned above :rolleyes:&lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Zero&lt;/STRONG&gt;&lt;BR /&gt;#4 If you don't know why your settings don't work, export and post your project. Otherwise it's difficult to understand what you've done exactly.&lt;/SPAN&gt;&lt;HR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:14:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Header-Source-file-related-question/m-p/578161#M23514</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: Header- / Source-file related question</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Header-Source-file-related-question/m-p/578162#M23515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Caradhras on Wed Apr 11 02:02:24 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;ok, here you go.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:14:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Header-Source-file-related-question/m-p/578162#M23515</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Header- / Source-file related question</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Header-Source-file-related-question/m-p/578163#M23516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheFallGuy on Wed Apr 11 02:07:02 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;What abouit the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#if CONFIG_ENABLE_DRIVER_I2C==1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at the start of i2c.h?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define CONFIG_ENABLE_DRIVE_I2C 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;either in you code, or in the compiler settings&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:14:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Header-Source-file-related-question/m-p/578163#M23516</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Header- / Source-file related question</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Header-Source-file-related-question/m-p/578164#M23517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Caradhras on Wed Apr 11 02:12:45 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;in driver_config.h at line 32 i defined it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define CONFIG_ENABLE_DRIVER_I2C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so, it must be fine, since i2c-functions from i2c.h/.c in main work as expected. as well als all other drivers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;including driver_config.h into test.c didnt help :(&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:14:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Header-Source-file-related-question/m-p/578164#M23517</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Header- / Source-file related question</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Header-Source-file-related-question/m-p/578165#M23518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheFallGuy on Wed Apr 11 02:16:51 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Including driver_config.h *BEFORE* you include i2c.h works&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you *ever* programmed in C before? Whatever, I suggest you go and take a C programming course before posting any more questions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:14:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Header-Source-file-related-question/m-p/578165#M23518</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Header- / Source-file related question</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Header-Source-file-related-question/m-p/578166#M23519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Caradhras on Wed Apr 11 02:35:55 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you for your help and encouragement.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is some time ago since i used c and i didnt remember the simple thing, that the order of the includes does matter. Im very sorry to bother you with these puny problems.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:14:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Header-Source-file-related-question/m-p/578166#M23519</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Header- / Source-file related question</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Header-Source-file-related-question/m-p/578167#M23520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by researchinnovation on Thu Apr 12 02:14:01 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=4][B][COLOR=Blue]Hi...!!! &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to take/read file(.txt format doc format) continuously as an input for one of my application on I2C.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; But when I use FILE *file and file =fopen("filename.txt","r"); it is&amp;nbsp;&amp;nbsp; showing error and I tried few more things but it is showing error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have used #include "debug_printf.h" , #include "stdlib.h" and other required driver files, but still error is coming.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please guide me on this or share any document available on c functions for LPCxpresso.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks....:)[/COLOR][/B][/SIZE]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:14:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Header-Source-file-related-question/m-p/578167#M23520</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Header- / Source-file related question</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Header-Source-file-related-question/m-p/578168#M23521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Rob65 on Thu Apr 12 08:18:41 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: researchinnovation&lt;/STRONG&gt;&lt;BR /&gt;[SIZE=4][B][COLOR=Blue]Hi...!!! [/COLOR][/B][/SIZE]&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why are you posting a non related question in 3 different topics ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please post you question only once and please open a new thread if you want to address a new question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think things like this have been asked before ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please search the forum to see if that results in an answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rob&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:14:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Header-Source-file-related-question/m-p/578168#M23521</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Header- / Source-file related question</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Header-Source-file-related-question/m-p/578169#M23522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by researchinnovation on Thu Apr 12 21:48:29 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hey Rob65..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am sorry. I was nt knowing dis. Anyway I wil not do so again. Can u plz help me on ma topic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:14:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Header-Source-file-related-question/m-p/578169#M23522</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:14:28Z</dc:date>
    </item>
  </channel>
</rss>

