undefined reference - error compiling for ConnectCore UL6

When I compile the following using Eclipse it throws “undefined reference to `ldx_i2c_request’”. i2c.h is on the include path so I don’t understand.

#include
#include
#include
#include

static i2c_t *i2c_ptr;
int i2c_bus = 0;

int main(void){
puts (“hello”);
i2c_ptr = ldx_i2c_request((unsigned int)i2c_bus);
return 0;
}

I found the answer. See compiler flags in:

https://www.digi.com/resources/documentation/digidocs/embedded/dey/3.2/cc6ul/yocto_t_apix-set-up-project.html