Languages

Menu
Sites
Language
install Knox library
install Knox library
1. Package manager > Settings > Extension SDK was added for installation.
2. Include the head file from the source, fill out the sample code, and build it, then...
 
install knox library
1. package manager > 설정 > Extension SDK에서 추가하여 설치를 하였다.
2. 소스에서 헤드파일을 include시키고 sample코드를 작성하여 빌드를 하면
 
#include <mdm.h>
 
void test_mdm()
{
mdm_data_t *lp_data = mdm_get_date_format();
if (lp_data) {
char *temp = (char *)lp_data->data;
if (temp) {
printf("format : %s", temp);
}
mdm_free_data(lp_data);
}
lp_data = mdm_get_date_time();
if (lp_data) {
char *temp = (char *)lp_data->data;
if (temp) {
printf("date time : %s", temp);
   }
mdm_free_data(lp_data);
}
}
 
src/test.o: In function `test_mdm':
C:\tizen-workspace\AArmyNative\Debug/../src/test.c:11: undefined reference to `mdm_get_date_format'
C:\tizen-workspace\AArmyNative\Debug/../src/test.c:17: undefined reference to `mdm_free_data'
C:\tizen-workspace\AArmyNative\Debug/../src/test.c:19: undefined reference to `mdm_get_date_time'
C:\tizen-workspace\AArmyNative\Debug/../src/test.c:25: undefined reference to `mdm_free_data'
collect2.exe: error: ld returned 1 exit status
clang++.exe: error: linker (via gcc) command failed with exit code 1 (use -v to see invocation)
 

Is there anything else I need to add?
뭐 더해야 하는 것이 있나요?
 
 

Responses

1 Replies
GEUNSOO KIM

you need to add the knox libraries in your project settings.

goto "C/C++ Build" > "Settings", C++ Linkers > Libraies

then add the knox libraries for all build profiles.

all non-standard libraries need to be added like this.

good luck.