Home Download Buy Blog Forum Support

C++ compiler issue

C++ compiler issue

Postby successfulfailure on Fri Nov 23, 2012 1:20 pm

I have an issue with compiling C++ and Python on my Sublime Text 2.
Using CTRL + B, I get an error.

The error message:
[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\]

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: Select all
#include <iostream>

int main()
   std::cout << "Hello world!\n";
   return 0;

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.
Posts: 1
Joined: Fri Nov 23, 2012 1:07 pm

Return to Technical Support

Who is online

Users browsing this forum: Google [Bot], snorga and 15 guests