I just started a C++ course and am using MinGW to compile (I started doing K&R so already had it set up for C). Whenever I compile a file that includes or uses any library it gives me the following error:
"The procedure entry point ... (this is just a long scrambles-looking thing) could not be located in the dynamic link library ...(the path for the file I'm compiling)"
After googling this I've tried placing libstdc++-6.dll in C:\Windows\System32, placing C:\MinGW\bin as first priority in PATH, and placing libstdc++-6.dll in the same folder as the .cpp file I am compiling.
The only solution was copying it to the folder of the .cpp file I am compiling, but I would like to avoid having to do that every time in the future.
Thanks in advance for the help!
-static-libgcc -static-libstdc++
to your compiler flags. – Pitman.dll
s is now inside of the.exe
(it probably grew in size by a few megabytes). – Pitman.dll
s to the folder with your.exe
. I assume you're compiling from a command line, so I'd suggest you to find a proper IDE. Then you won't care how lengthy your list of flags is. – Pitman