Category : apple-m1

I wrote a simple code with lib-boost to load a CSV file. After compiling it I get the following error: Undefined symbols for architecture arm64: "boost::iostreams::mapped_file_source::init()", referenced from: boost::iostreams::mapped_file_source::mapped_file_source<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned long, long) in class_map.cpp.o "boost::iostreams::mapped_file_source::open_impl(boost::iostreams::basic_mapped_file_params<boost::iostreams::detail::path> const&)", referenced from: void boost::iostreams::mapped_file_source::open<boost::iostreams::detail::path>(boost::iostreams::basic_mapped_file_params<boost::iostreams::detail::path> const&) in class_map.cpp.o "boost::iostreams::mapped_file_source::end() const", referenced from: ..

Read more

I have a project (here) that works both on Linux and intel MacOS, but in my Mac m1 it doesn’t. Whenever I try to compile it, I get the following errors (ops.: I’m using vscode m1 native): [email protected] dev % make g++ -o app src/glad.c src/AudioManager.cpp src/Character.cpp src/SceneManager.cpp src/Source.cpp src/Sprite.cpp src/stb_image.cpp -g -Iinclude -F/Library/Frameworks -lglfw ..

Read more

When I built C++ project on Xcode 12.4 with M1 Chip Mac, for the linked NTL library (libntl.a), got the error: the linked library libntl.a is missing one or more architectures required by this target: x86_64. Any suggestions for this issue? I have tried to modify architecture variables in build settings but didn’t wortk. Settings-Architectures ..

Read more