All goes well the the compiling cmake .. -G "MinGW Makefiles"
and the "making" mingw32-make.exe
. The problem arises when I try to run the exe - windows gives me this error message:
The procedure entry point
_ZNKSt10filesystem7_cxx1118directory_iteratordeEv could not be located in the dynamic link library ****\anamorph_movie.exe.`
(stars represent path to build folder)
I've tried modifying my compiler/linker flags as mentioned in many posts (see my CMakeLists.txt):
cmake_minimum_required(VERSION 3.1)
project(anamorph_movie)
SET(GCC_COVERAGE_COMPILE_FLAGS "-static-libgcc")
SET(GCC_COVERAGE_COMPILE_FLAGS "-static-libgcc++")
# Set the C++ standard to C++17
set(CMAKE_CXX_STANDARD 17)
# include the vcg library
include_directories(./lib/vcglib-main/)
# include the eigen library
include_directories(./lib/vcglib-main/eigenlib)
include_directories(C:/msys64/mingw64/bin)
include_directories(C:/msys64/mingw64/lib)
# Add your executable and source files here
add_executable(${PROJECT_NAME} anamorph_video_commandline.cpp)
target_link_libraries(${PROJECT_NAME} stdc++fs)
I also tried using include_directories
as you can probably see (if this is bad practise forgive me)
I also tried moving my exe into my C:\msys64\mingw64\bin
folder - also didn't work.
I also tried moving my path variable to the top of this list (don't know why I thought this would work but worth a shot)
I tried pacman -Suy
and observe no difference.