Dev-Cpp icon indicating copy to clipboard operation
Dev-Cpp copied to clipboard

Compiling like Dev C++ on

Open shinspiegel opened this issue 4 years ago • 1 comments
trafficstars

I'm on a Linux computer and I can't install Windows on this machine. What flags should I add to compile a simple C project on GCC that emulates the process of this IDE?

shinspiegel avatar Apr 18 '21 18:04 shinspiegel

Processing makefile...

  • Makefile Processor: C:\Dev-Cpp\TDM-GCC-64\bin\mingw32-make.exe
  • Command: mingw32-make.exe -j8 -f "C:\Users\Anonymous\Documents\Makefile.win" all

g++.exe -c main.cpp -o main.o -I"C:/Dev-Cpp/TDM-GCC-64/include" -I"C:/Dev-Cpp/TDM-GCC-64/x86_64-w64-mingw32/include" -I"C:/Dev-Cpp/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/9.2.0/include" -I"C:/Dev-Cpp/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/9.2.0/include/c++"

g++.exe main.o -o Project1.exe -L"C:/Dev-Cpp/TDM-GCC-64/lib" -L"C:/Dev-Cpp/TDM-GCC-64/x86_64-w64-mingw32/lib" -static-libgcc -mwindows

FMXExpress avatar Apr 19 '21 05:04 FMXExpress