Content originally posted in LPCWare by Caradhras on Mon Apr 09 15:42:14 MST 2012
Hi,
i got a question that may be little bit stupid but i dont find my fault.
The problem is this:
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.
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.
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!
Help! :(