-
Notifications
You must be signed in to change notification settings - Fork 9
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
[Bug] Build failed with undefined reference to 'crc32' on Ubuntu Linux #25
Labels
bug
Something isn't working
Comments
dougpuob
changed the title
[Bug] Build failed with undefined reference to `compress2' on Ubuntu Linux
[Bug] Build failed with undefined reference to 'crc32' on Ubuntu Linux
Aug 25, 2019
locate command to find libz
readelf -a to find functions
|
Move libz to the to the last of target_link_libraries() function. if(WIN32)
set(EXTERNAL_LIB Version)
elseif(UNIX AND NOT APPLE)
set(EXTERNAL_LIB z tinfo)
elseif(APPLE)
set(EXTERNAL_LIB z ncurses)
endif()
target_link_libraries(
cppnamelint
docopt
...
${EXTERNAL_LIB} <-- **HERE** put this to the lowest
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Even I built with
-lz
option, but it still showed the following error.Error Message
The text was updated successfully, but these errors were encountered: