Sublime Forum

G++: no such file or directory;

#1

Dear folks,

pls be so kind to support me concerning my problem:

I’m not able to compile any file in sublime text, all packages are installed. With every other program Eclipse, DevC++, Codeblocks, it’s possible to compile and link the files. But not with sublime.

Also tried any instruction I was able to find: DE installScreenshot%20(78) /reinstall, build in files, etc. nothing worked.

Thanks in advance and kind regards,

0 Likes

#2

Hi
Have you got a path issue ? Unfortunately my monitor and or eyesight isn’t good enough to see the contents of the window, and clicking on the image doesn’t zoom…

0 Likes

#3

every thing is fine in my path.

0 Likes

#5

but i don’t know why this is showing error (No such file or directory)

0 Likes

#6

Anyone know resion, why it is showing error.

0 Likes

#7

It can’t find the header bits/stdc++. It’s bad practice to use that header and it may well not work with the compiler/options you’re using, see: https://stackoverflow.com/questions/31816095/why-should-i-not-include-bits-stdc-h?rq=1. You’re better off just including string and iostream.

0 Likes

#9

Still the same problem occurs.

0 Likes

#10

Could be a problem with your install, see https://stackoverflow.com/questions/50504352/fatal-error-iostream-no-such-file-or-directory-include-iostream#50505568.

0 Likes

#11

then why this is successfully running on DevC++, Codeblocks.

0 Likes

#12

DevC++ for instance ships its own copy of minGW.

0 Likes

#13

But my installation part is fine, You know any other solution?

0 Likes

#14

Have you tried compiling from command prompt?

0 Likes

#15

Yes it’s running successfully on command prompt but not with sublime. please help

0 Likes

#16

Can you share the command you used that worked from command prompt?

0 Likes

#17

Sure give me 2 min.

0 Likes