In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "JNA in Linux and MAC how to compile C", the content of the article is simple and clear, easy to learn and understand, now please follow the editor's ideas slowly in depth, together to study and learn "JNA in Linux and MAC how to compile C" bar!
Write C code
Test.c
# include
Int add (int a, int b)
Int add (int a, int b) {
Int c = a + b
Printf ("Hello,this method is userd to add two Integer.")
Return c
}
Gcc-fpic-c test.c
Linux system compilation:
Gcc-shared-o libtest.so test.o
MAC system compilation:
Gcc-dynamiclib-o libtest.dylib test.o
Thank you for your reading, the above is the content of "how JNA compiles C in Linux and MAC". After the study of this article, I believe you have a deeper understanding of how JNA compiles C in Linux and MAC, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.