Home/Support/Support Forum/undefined reference - error compiling for ConnectCore UL6
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

undefined reference - error compiling for ConnectCore UL6

0 votes
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 <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <libdigiapix/i2c.h>

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;
}
asked Jun 13 in Linux by wayne.gauley New to the Community (1 point)

Please log in or register to answer this question.

1 Answer

0 votes
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
answered Jun 15 by wayne.gauley New to the Community (1 point)
...