언어 설정

Menu
Sites
Language

How to make shared libary and link it

This description is for making shared library and for linking it in project. Right-lick shared library project in project explorer and change architecture to ARMv7-a Properties --> C/C++ Build --> Tizen settings --> architecture

Responses

1 댓글
Anand Rudrakshi

Please mention to add the below code in header files so that the library could be used by both c and c++ applications.

#ifdef __cplusplus
extern "C" {  // only need to export C interface if used by C++ source code
#endif

//Exported api

EXPORT_API int mytemp(int);

#ifdef __cplusplus
}
#endif