What is needed to be done to test the command issued by CB works on the command line.
Open the CMD.exe command window and enter the below lines one at a time.
NOTE: You can skip the line(s) starting with REM.
REM Set path to what CB uses
SET PATH=C:\Program Files\CodeBlocks\MinGW\bin;%PATH%
REM Directory to what CB used
CD /D "C:\Users\Jordan\Desktop\C++ Stuffs\Tutorials\LOLOL"
REM Command used by CB
mingw32-g++.exe -Wall -fexceptions -g -c "C:\Users\Jordan\Desktop\C++ Stuffs\Tutorials\LOLOL\main.cpp" -o obj\Debug\main.o