Your setup is fine, and yes you need to specify libraries to resolve your
undefined references.
I’d consider using cmake to avoid having to figure out the necessary
library names yourself:
find_package(Boost REQUIRED COMPONENTS program_options)
target_link_libraries(${PROJECT_NAME} Boost::program_o
It's been a while since I installed MinGW-w64 so I can't remember the
specific installation options selected (thread models, etc), or if that
is relevant.
I've been able to compile a few relatively simple C and C++ programs.
Using the MSYS2/MINGW64 shell for program compilation. Installed boo