Notepad++ and Compiler???

Ok, so I've tried messing around with c++ in the past, and actually managed to get it working. I know that I used notepad++, and I vaguely remember having to put the .cpp file into a compiler bin folder, then open said folder in cmd, and then I was able to run it. However Now i can't seem to remember what compiler I used, or how I got it to run in the first place. Please can someone please help??

P.s. Please don't suggest using codeblocks, it doesn't seem to work for me, and I hate using IDEs simply because I like doing things the old fashioned way. Thank You for taking the time to read this, and ANY help would be appreciated.

instal any command-line based compiler (Either GCC or clang works fine) then execute compiler providing path to your project and nessesary commands. Or preferably use a makefile and run make utlity. Do not execute compiler directly from a command line without use of makefile or IDE (which basicly contains make script in itself) for any real projects.
My current command line for test project (where I check and fix any code on this forum) looks like that:
x86_64-w64-mingw32-g++.exe -g -march=core2 -Wshadow -Winit-self -Wredundant-decls -Wcast-align -Wundef -Wfloat-equal -Winline -Wunreachable-code -Wswitch-enum -Wswitch-default -Wmain -pedantic-errors -pedantic -Wzero-as-null-pointer-constant -std=c++1y -Wextra -Wall -Wconversion -gdwarf-2 -isystem E:\Users\MiiNiPaa\home\Developement\lib\c++\BOOST\boost_1_54_0 -ftemplate-depth=1000 -IE:\Users\MiiNiPaa\home\Developement\lib\c++\SFML\SFML-2.1\include -c E:\Users\MiiNiPaa\home\Developement\CodeBlocks\projects\Test\main.cpp -o obj\Debug\main.o
ANd it is not even the large command. If you really want to write it by hand, go ahead.
Last edited on
Topic archived. No new replies allowed.