Skip to content
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

Constructors and Functions of structs don't have the IMPLOT_API macro #545

Open
Cidolfas opened this issue Dec 18, 2023 · 0 comments
Open

Comments

@Cidolfas
Copy link

Cidolfas commented Dec 18, 2023

I've been using the https://github.com/aybe/DearImGui project to generate C# bindings for imgui and implot, and I ran into an issue (aybe/DearImGui#24) where the generated code calling a non-default constructor for ImPlotPoint would cause an EntryPointNotFoundException.

After digging into it some, the root issue is simply that none of the constructors for ImPlotPoint wind up in the dll's exports when using the IMPLOT_API macro when that expands to "__declspec(dllexport)". In fact, none of those constructors - and for that matter, none of the constructors or member functions of any other struct in implot - have the IMPLOT_API macro in front of them in the source.

Was this an intentional choice in implot?

I checked with imgui's source and the structs there (e.g. ImGuiStyle) do have IMGUI_API declared for constructors and member functions.

@Cidolfas Cidolfas changed the title Constructors and Function of structs don't have the IMPLOT_API macro Constructors and Functions of structs don't have the IMPLOT_API macro Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant