# Link error: undefined reference to \`adl\_gprsCmdAct'

**URL:** <https://forum.sierrawireless.com/t/link-error-undefined-reference-to-adl-gprscmdact/5448>\
**Category:** Open AT\
**Created:** [February 10, 2012, 12:38pm UTC](https://forum.sierrawireless.com/t/link-error-undefined-reference-to-adl-gprscmdact/5448 "2012-02-10T12:38:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lennart](https://avatars.discourse-cdn.com/v4/letter/l/b9bd4f/32.png) [@Lennart](https://forum.sierrawireless.com/u/Lennart)\
**Post date:** [February 10, 2012, 12:38pm UTC](https://forum.sierrawireless.com/t/link-error-undefined-reference-to-adl-gprscmdact/5448/1 "2012-02-10T12:38:56Z")

</div>

I’m trying to connect GPRS with TCP/IP trough a bearer, but I keep getting the following error if I build my code:

> [@](#):
>
> Description Resource Path Location Type  
> Link error: undefined reference to `adl_gprsCmdAct'	gprs_connect line 697	C/C++ Problem Link error: undefined reference to `adl\_gprsCmdAct’ gprs\_connect line 778 C/C++ Problem

I can get my GPRS connection up till wip\_netInit() but I can’t open the bearer, because my code won’t build.  
I can’t find anything about the error on the forum or on the internet, is there anyone who knows how to solve this?  
The error line numbers stay the same whatever I do with my code. A snippet of my code i placed bellow.  
It seems to generate the error at the wip\_bearerOpen() command.

I’m using the FXT009 with firmware R7.46.0.201108091301 and WIP Library 5.41.0.201102280815. Developer Studio 2.1.1 and [target]\_ARM\_ELF\_GCC\_Debug.

```auto
#include "adl_global.h"
#include "wip.h"

#define GPRS_APN ""
#define GPRS_USER ""
#define GPRS_PASSWORD ""
#define GPRS_PINCODE ""
```

```auto
void evh_bearer( wip_bearer_t b, s8 event, void *Context) {
	TRACE((1, "evh_bearer()"));
	switch( event)
	{
	case WIP_BEV_IP_CONNECTED:
		TRACE((1, "GPRS bearer connected"));
		adl_atSendResponse ( ADL_AT_UNS, "GPRS bearer opened\r\n");
	    break;
	case WIP_BEV_IP_DISCONNECTED:
		TRACE((1, "GPRS bearer disconnect"));
	    break;
	default:
		TRACE((1, "GPRS bearer event = %d", event));
	    break;
	}
}

static void open_and_start_bearer( void) {
  int r;
  wip_bearer_t b;

  r = wip_bearerOpen( &b, "GPRS", evh_bearer, NULL); //gives adl_gprsCmdAct error??
  if(r != 0) TRACE((1, "wip_bearerOpen() : Fail"));
  else{
	  	  r = wip_bearerSetOpts( b, WIP_BOPT_GPRS_APN, GPRS_APN,
	  			  WIP_BOPT_LOGIN, GPRS_USER,
	  			  WIP_BOPT_PASSWORD, GPRS_PASSWORD,
	  			  WIP_BOPT_END);
	  	  if(r != 0) {
		  	  TRACE((1, "wip_bearerSetOpts : Fail"));
		  	  wip_bearerClose(b);
	  	  }
	  	  else{
		  	  r = wip_bearerStart( b);
		  	  if(r != 0){
		  		  TRACE((1, "wip_bearerStart : Fail"));
		  		  TRACE((1, "ERROR CODE: %d",r));
		  	  }
	  	  }
  	  }
}
```

Hope you guys can help 🙂 thanks in advance.

---

<div class="post-metadata">

**Author:** ![Lennart](https://avatars.discourse-cdn.com/v4/letter/l/b9bd4f/32.png) [@Lennart](https://forum.sierrawireless.com/u/Lennart)\
**Post date:** [February 14, 2012, 10:57am UTC](https://forum.sierrawireless.com/t/link-error-undefined-reference-to-adl-gprscmdact/5448/2 "2012-02-14T10:57:08Z")

</div>

I fixed the error by reinstalling all the software including the developer studio, weird but I’m happy it is fixed.
