I have an issue with compiling C++ and Python on my Sublime Text 2.
Using CTRL + B, I get an error.
The error message:
[quote][Error 2] The system cannot find the file specified
[cmd: [u’g++’, u’C:\\Users\\User\\Desktop\\Test.cpp’, u’-o’, u’C:\\Users\\User\\Desktop/Test’]]
[dir: C:\Users\User\Desktop]
[path: C:\Program Files\Java\jdk1.7.0_07\bin;C:\Program Files (x86)\QuickTime\QTSystem]
[Finished][/quote]
My build system is currently set to automatic. Manual set up to C++ and Python still results the same error.
When I try my CodeBlocks to run Test.cpp it runs fine.
Test.cpp code:
[code]#include
int main()
{
std::cout << “Hello world!\n”;
return 0;
}
[/code]
It has been few days since I started coding Python and C++. Since I only use Sublime Text 2 for web coding, this is the first time I have encountered an error on Sublime Text.
I am assuming that this error is because of the complier on my computer and the CodeBlocks compiler is different from Sublime Text’s compiler.
Please help me run Python and C++ on my computer.