2021年3月10日星期三

How can I properly link the library in such a way that the compiler gets the function declaration from the library?

I know this may be a very basic question as I am a beginner to C. I have a shared library that contains a function. I am using that same function in my own c file. Whenever I compile and link the shared library, it throws and error: implicit declaration of function. How can I properly link the library in such a way that the compiler gets the function declaration from the library? The shared library I am using is mach-o.

https://stackoverflow.com/questions/66575454/how-can-i-properly-link-the-library-in-such-a-way-that-the-compiler-gets-the-fun March 11, 2021 at 10:00AM

没有评论:

发表评论