I have made a c++ dll with visual studio, I succeeded to use it with visual studio but i can't find how to use it with just vscode or more generally with just command line. My goal is to put my library on github with the documentation explaining how to use it but i am not able to compile a program in command line.
I tried to use this command :
g++ src/SummerFlow_Client.cpp -o bin/prog -I include -L lib -lmingw32 -lSummerFlow
with all the files with the code in the folder "include", the .lib file in the folder "lib" and my .dll file in the folder "bin".
This returned this error :
C:/Program Files/mingw-w64/x86_64-8.1.0-win32-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible lib/SummerFlow.lib when searching for -lSummerFlow
C:/Program Files/mingw-w64/x86_64-8.1.0-win32-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible lib/SummerFlow.lib when searching for -lSummerFlow
C:/Program Files/mingw-w64/x86_64-8.1.0-win32-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible lib\SummerFlow.lib when searching for -lSummerFlow
C:/Program Files/mingw-w64/x86_64-8.1.0-win32-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lSummerFlow
collect2.exe: error: ld returned 1 exit status