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

Undefined symbols for architecture x86_64: "_compress2" |Win/Mac] #5

Open
sven-music opened this issue Dec 17, 2022 · 1 comment
Open

Comments

@sven-music
Copy link

Hey, when running make i get the same error on Windows and MacOS.

[ 39%] Linking CXX executable gvmdump Undefined symbols for architecture x86_64: "_compress2", referenced from: void Image::save_helper<Image::save(__sFILE*, Image::Format) const::$_0>(Image::Format, Image::save(__sFILE*, Image::Format) const::$_0&&) const in libphosg.a(Image.cc.o) void Image::save_helper<Image::save(Image::Format) const::$_1>(Image::Format, Image::save(Image::Format) const::$_1&&) const in libphosg.a(Image.cc.o) "_compressBound", referenced from: void Image::save_helper<Image::save(__sFILE*, Image::Format) const::$_0>(Image::Format, Image::save(__sFILE*, Image::Format) const::$_0&&) const in libphosg.a(Image.cc.o) void Image::save_helper<Image::save(Image::Format) const::$_1>(Image::Format, Image::save(Image::Format) const::$_1&&) const in libphosg.a(Image.cc.o) "_crc32", referenced from: void write_png_chunk<Image::save(__sFILE*, Image::Format) const::$_0&>(char const (&) [5], void const*, big_endian<unsigned int, unsigned int>, Image::save(__sFILE*, Image::Format) const::$_0&) in libphosg.a(Image.cc.o) void write_png_chunk<Image::save(Image::Format) const::$_1&>(char const (&) [5], void const*, big_endian<unsigned int, unsigned int>, Image::save(Image::Format) const::$_1&) in libphosg.a(Image.cc.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [gvmdump] Error 1 make[1]: *** [CMakeFiles/gvmdump.dir/all] Error 2 make: *** [all] Error 2

@fuzziqersoftware
Copy link
Owner

Thanks for the report - I've pushed a change just now that should fix this. One of the dependencies (phosg) itself had a dependency change, which caused this issue.

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

2 participants