Hi
I'm confused Heres a small test case with my problem
I'm trying to define in a module a sub called module_sub(), using the attribute used as I need to call it from c code and its not otherwise used within zbasic. Anyway it seems to me only if I call this subroutine from Main() does it get included.
Thanks
Neil
sub modul_sub() attribute(used) defined in module ? Problem
sub modul_sub() attribute(used) defined in module ? Problem
- Attachments
-
- test.zip
- (7.79 KiB) Downloaded 2609 times
Re: sub modul_sub() attribute(used) defined in module ? Prob
I don't know yet why that is happening. As a workaround, you can have all unused code included by adding this option to your project file:ndudman wrote:only if I call this subroutine from Main() does it get included.
Code: Select all
--optimize=no-unreferenced-code
- Don Kinzer
The compiler version v2.6.9 contains a correction for this issue. You can download the full installer or just the compiler via the Downloads Page.
- Don Kinzer