A simple question: How to use EXPORT_SYMBOL()
- RushA
- Away
- New Member
-
Less
More
- Posts: 11
- Thank you received: 0
17 Apr 2025 07:26 #326509
by RushA
A simple question: How to use EXPORT_SYMBOL() was created 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?
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.
- andypugh
-
- Offline
- Moderator
-
Less
More
- Posts: 23279
- Thank you received: 4933
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
You may need ti #include A.h in B.c
Please Log in or Create an account to join the conversation.
- RushA
- Away
- New Member
-
Less
More
- Posts: 11
- Thank you received: 0
21 Apr 2025 00:55 #326782
by RushA
Replied by RushA on topic A simple question: How to use EXPORT_SYMBOL()
hi, thanks!
yes, it's C. I did include A.h in B.c, but it doesn't work.
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