-
Notifications
You must be signed in to change notification settings - Fork 347
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
Fail to link if compiled as shared lib + inline with MinGW #288
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With MinGW on Windows, linker reports multiple definition of symbols when geos 3.8.0 is created as a shared lib and DISABLE_GEOS_INLINE is OFF.
There is no issue with others combination (shared lib + inline off, static with inline or not).
Click to expand log
Quick fix:
Therefore, inline.cpp is not compiled if MinGW + shared + inline (and we can make use of DLL_EXPORT which is not used or defined anywhere else in source code):
The text was updated successfully, but these errors were encountered: