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

Opaque types conflict when present in multiple modules #142

Open
sethrj opened this issue Sep 28, 2019 · 0 comments
Open

Opaque types conflict when present in multiple modules #142

sethrj opened this issue Sep 28, 2019 · 0 comments
Labels

Comments

@sethrj
Copy link
Member

sethrj commented Sep 28, 2019

If module A has a function that interacts with a SWIGTYPE (generic match for int* and classes), it will generate a derived type SWIGTYPE_p_int. If module B imports module A and also has a function that uses that same type, it too will generate the opaque type. Unfortunately, that means that the new type is incompatible with the old (meaning you will be unable to pass the same type between C++ functions), and even worse it generates a build error because module B has a use a statement that imports the type, so the names will confict.

Identified by @balos1

@sethrj sethrj added the bug label Sep 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant