Link error: undefined reference to `adl_gprsCmdAct'


#1

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

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.

#include "adl_global.h"
#include "wip.h"

#define GPRS_APN      ""
#define GPRS_USER     ""
#define GPRS_PASSWORD ""
#define GPRS_PINCODE  ""
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 :slight_smile: thanks in advance.


#2

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