Skip to content

Error when developing WSL plugin in Rust #11914

Answered by mveril
mveril asked this question in General
Discussion options

You must be logged in to vote

I solved the issue. In the header file, the entry point is defined as:

#define WSLPLUGINAPI_ENTRYPOINTV1 WSLPluginAPIV1_EntryPoint

Thus, the actual name of the entry point is WSLPluginAPIV1_EntryPoint not WSLPLUGINAPI_ENTRYPOINTV1.
The name is replaced by the preprocessor using the macro.
So in the context of my rust code I need to use WSLPluginAPIV1_EntryPoint.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@mveril
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by mveril
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants