# Include generator issue

**URL:** <https://forum.legato.io/t/include-generator-issue/2863>\
**Category:** Legato Application Framework\
**Created:** [December 15, 2017, 7:33am UTC](https://forum.legato.io/t/include-generator-issue/2863 "2017-12-15T07:33:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lumao](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/lumao/32/167_2.png) [@lumao](https://forum.legato.io/u/lumao)\
**Post date:** [December 15, 2017, 7:33am UTC](https://forum.legato.io/t/include-generator-issue/2863/1 "2017-12-15T07:33:41Z")

</div>

![Screenshot from 2017-12-15 15:18:34](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/1X/0aa5d20a455cb178f1d5e515b5984fb49e64533c.png)  
Hi, forum,  
See the clip, I don’t know why my DS (v5.3) will auto generate an include file (“le\_gpioPin25\_interface.h”) although I didn’t binding the service (See gpioService.le\_gpioPin25).  
It seems there are some bugs with the DS(v5.3).

Can you give me any advises, thank you!

the . cdef file:

```
sources:
{
	TrackDemoComponent.c
}
requires:
{
	api:
	{
	// ======= GPIO API requires ========
		// IOT1_GPIO4
		le_gpioPin21 = le_gpio.api
		// IOT1_GPIO3
		le_gpioPin32 = le_gpio.api
		// IOT1_GPIO2
		le_gpioPin7 = le_gpio.api
		// IOT1_GPIO1
		//le_gpioPin25 = le_gpio.api
		
	// ======== ADC API requires ========
		le_adc = le_adc.api
		
	// ======== GPS API requires ========
		le_posCtrl = positioning/le_posCtrl.api
		le_pos = positioning/le_pos.api
		
	// ======== modem information. e.g. to get IMEI numbers ========
		le_info = le_info.api
		
	// ======== SIM ========
		le_sim = le_sim.api
		
	// ======== Radio ========
		le_mrc = le_mrc.api
		
	// ======== Modem data control e.g . to set APN ========
		le_mdc = le_mdc.api
		
	}
}

cflags:
{
    //"-std=c99"
    -I$CURDIR
	-I$CURDIR/user
}

```

the .adef file:

```
executables:
{
	trackdemo = ( TrackDemoComponent )
}

processes:
{
	envVars:
	{
		LE_LOG_LEVEL = DEBUG
	}

	run:
	{
		( trackdemo )
	}

	maxCoreDumpFileBytes: 512K
	maxFileBytes: 512K
}

bindings:
{
	trackdemo.TrackDemoComponent.le_gpioPin21 -> gpioService.le_gpioPin21	//IOT1_GPIO4
	trackdemo.TrackDemoComponent.le_gpioPin32 -> gpioService.le_gpioPin32	//IOT1_GPIO3
	trackdemo.TrackDemoComponent.le_gpioPin7 -> gpioService.le_gpioPin7 //IOT1_GPIO2
	//trackdemo.TrackDemoComponent.le_gpioPin25 -> gpioService.le_gpioPin25	//IOT1_GPIO1
	trackdemo.TrackDemoComponent.le_adc -> modemService.le_adc //ADC Service
	trackdemo.TrackDemoComponent.le_posCtrl -> positioningService.le_posCtrl//GPS Control Service
	trackdemo.TrackDemoComponent.le_pos -> positioningService.le_pos //GPS Position Service
	
	//Bindings Modem information services e.g to get IMEI numbers
    trackdemo.TrackDemoComponent.le_info -> modemService.le_info
    
    //Bindings SIM services e.g to get ICCID number
    trackdemo.TrackDemoComponent.le_sim -> modemService.le_sim
    
    //Bindings Modem Radio Control
    trackdemo.TrackDemoComponent.le_mrc -> modemService.le_mrc
    
    //Bindings Modem data control e.g to set APN
    trackdemo.TrackDemoComponent.le_mdc -> modemService.le_mdc
}

version: 1.0.0
maxFileSystemBytes: 512K

```

---

<div class="post-metadata">

**Author:** ![daav](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/daav/32/64_2.png) [@daav](https://forum.legato.io/u/daav)\
**Post date:** [December 15, 2017, 8:04am UTC](https://forum.legato.io/t/include-generator-issue/2863/2 "2017-12-15T08:04:24Z")

</div>

Hi @lumao

Does it still occur after:

- a clean build?
- a project build after having deleted the inc-gen and the Target\_Legato\_Debug folders?

By the way, we’ll try to reproduce the issue, thanks for the files.

---

<div class="post-metadata">

**Author:** ![lumao](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/lumao/32/167_2.png) [@lumao](https://forum.legato.io/u/lumao)\
**Post date:** [December 15, 2017, 8:11am UTC](https://forum.legato.io/t/include-generator-issue/2863/3 "2017-12-15T08:11:48Z")

</div>

hi daav,  
I restart the DS and I Clean Project and rebuild again, it is OK now. Thank you.

 ![Screenshot from 2017-12-15 16:12:31](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/1X/6089562277a9f01cc500e70223a2ede5d73491b8.png)
