A simple question: How to use EXPORT_SYMBOL()

More
17 Apr 2025 07:26 #326509 by RushA
hi,
I have a question in using linuxcnc 2.9.
I want to call the function defined in the other module. In module A, I export a function using EXPROT_SYMBOL(). In module B, I use "extern" to declare the function and call it. However, it always tells me "undefined symbol". How to solve this problem?

Please Log in or Create an account to join the conversation.

More
18 Apr 2025 08:53 #326576 by andypugh
Replied by andypugh on topic A simple question: How to use EXPORT_SYMBOL()
Presumably this is in C?

You may need ti #include A.h in B.c

Please Log in or Create an account to join the conversation.

More
21 Apr 2025 00:55 #326782 by RushA
hi, thanks!
yes, it's C. I did include A.h in B.c, but it doesn't work.

Please Log in or Create an account to join the conversation.

Time to create page: 0.051 seconds
Powered by Kunena Forum