“Undefined reference ” to a function defined in static library
问题 I am trying to build a Library to use in an application. I built the library as below, and when i compile the application i get the below error: I have done the beolw things. I use: gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) In Library to be called from application: Here i have lot of modules, but entry point to this library is func() (i.e., main () is replaced with func() so that i can call the module, also func () is not declared as 'static'.) In one of files: int func (); ... int