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
mingw-w64 builds fail due to "export ordinal too large" #3672
Comments
Seems you are hitting the same limit as VS linker has. |
That sounds promising, I'll try that. BTW, I think the EDIT: Nevermind, I see the |
Compilation succeeded after I added EDIT: On second thought, the issue seems to be Windows-specific, so it's perhaps best suited in a separate section, not inside the
|
I'm trying to compile pcl using mingw-w64 GCC from MSYS2, but I get the error
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: error: export ordinal too large: 93998
Full error with context
Exact steps to reproduce are:
I've had to add
add_definitions(-D_USE_MATH_DEFINES)
toCMakeLists.txt
to avoid issues withM_PI
not being defined. I've also added the#ifdef _WIN32
fix topcd_grabber.cpp
mentioned in #3667. I'll make some PR's regarding this when I've gotten everything to compile.A suggested fix I found somewhere was to add
-Wa,-mbig-obj
toCMAKE_CXX_FLAGS
, but that didn't help.Your Environment
The text was updated successfully, but these errors were encountered: