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.


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: