Compilation error: examples with "\" in include paths - Linux

Discussion created by lpcware Employee on Jun 15, 2016
Content originally posted in LPCWare by beni0664 on Tue Nov 18 07:13:13 MST 2014

I figured out, that every example of the LPC11U14 with relative includes does not compile under Linux:

In file included from ../example/src/Lib/UsbRom.c:32:0:
example/src/Lib/subdir.mk:18: recipe for target 'example/src/Lib/UsbRom.o' failed
../example/src/Lib/UsbRom.h:33:27: fatal error: ..\GenericHID.h: No such file or directory
#include "..\GenericHID.h"

If you change the path seperator to a "/" it works.

There is also a problem with the case-sensitivity under Linux (MassStorage example):

In file included from ../example/src/Lib/DataRam.c:39:0:
../example/src/Lib/fatutil.h:20:17: fatal error: usb.h: No such file or directory
example/src/Lib/subdir.mk:27: recipe for target 'example/src/Lib/DataRam.o' failed

The include is originally named USB.h

In addition:

LPCXpresso/workspace/lpc_chip_11uxx_lib/inc/pmu_11xx.h:49:8: warning: missing terminating " character [enabled by default]

There should be one additional " character.

Best regards,