mercredi 4 octobre 2017

Compiling on Windows using g++ and finding dependent .dlls

Long story short, I'm making a 3D printer, from the ground up. Hardware and software. Don't ask why. Trying to get a compiler working with Windows 10 was frustrating so I postponed the problem by using the Ubuntu Subsystem. Now I'm using mingw to compile on windows and after having endless problems using the things I thought I was supposed to out of mingw, I tried running the g++ file that mingw gave me. It worked! but the .exe it produces relies on a bunch of .dlls in mingw's bin folder. So that means that either I'm doing something wrong or just don't know which .dlls need to go with my .exe.

All my code so far has been in c++.

The command I run to compile is

g++ -o Slicer.exe "d:\Programming And Creativity\Slicer\main.cpp" "d:\Programming And Creativity\Slicer\slice.cpp" "d:\Programming And Creativity\Slicer\face.cpp" "d:\Programming And Creativity\Slicer\line.cpp" "d:\Programming And Creativity\Slicer\vertex.cpp"

If I try going to my project's folder and running g++ from there, it complains about a bunch of missing files, hence the giant mess of paths. Any comments/corrections/help would be appreciated.

Aucun commentaire:

Enregistrer un commentaire