c++libpqxx

The Procedure entry point pointstd::from_chars could not be located in the dynamic link library libpqxx-7-7.dll


I am compiling a C++ program on windows under MSYS2 MinGW and I am using the libpqxx library, the program compiles fine but when I go to run it from file explorer I get the following error

The Procedure entry pointstd::from_chars(char const*, char const*, double&, std::chars_format) could not be located in the dynamic link library libpqxx-7-7.dll

Image Here

this program runs without any errors if I run it from the MSYS2 MinGW terminal (By executing ./main.exe) but I would like the program to work without having to install MSYS2. I have the libpqxx library installed. I am using the following commands to compile the program

g++ main.cpp -o main libpq.lib -lpqxx

pkg-config --cflags --libs gtk+-3.0

(this program was developed on linux and I am using the gtk library)

(edit) Here is the folder structure that I have, the required dll is contained in the folder already, if I remove the dll then I get a file not found error

folder Structure

any help would be greatly appreciated


Solution

  • I have fixed the problem, I just needed to add a few more dll files to the directory in which my program resides and now it starts!

    the dll files required are:

    libintl-8.dll
    libstdc++-6.dll
    

    these dll files can be found in the bin folder under the mingw64 folder

    Thanks to @HolyBlackCat for pointing me in the right direction (telling me that I need more dlls)