-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: sz_dispatch_table
didn't initialize in rust binding on Windows
#178
Comments
Thank you, @CrazyboyQCD! Any chance you could contribute? I rarely switch from Linux & MacOS boxes to Windows, so it may take me a while to find the issue. |
Simple debugging shows that |
@CrazyboyQCD, does it work if you define "SZ_AVOID_LIBC" equal to "1" in build.rs? |
I think this condition may not be needed. |
If those help, would appreciate a PR 🤗 |
|
I replaced them with this and it works: #pragma section(".CRT$XCU", read)
__declspec(allocate(".CRT$XCU")) void (*_sz_dispatch_table_init)() = sz_dispatch_table_init;
@ashvardanian , how do you think? |
Perfect! Can you please open a PR? |
Closes #178 --------- Co-authored-by: WX\shixi <shixi1@cnwxsoft.com> Co-authored-by: CrazyboyQCD <53971641+CrazyboyQCD@users.noreply.github.com>
Describe the bug
When debugging test suite in rust binding, I found
sz_dispatch_table
didn't initialize.Build output:
StringZilla version
f195c50
Operating System
Windows 11
Hardware architecture
x86
Which interface are you using?
Rust binding
Contact Details
No response
Are you open to being tagged as a contributor?
.git
history as a contributorIs there an existing issue for this?
Code of Conduct
The text was updated successfully, but these errors were encountered: