Sublime Forum

Undefined reference

#1

Dear folks,

Please 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.
I am unable to compile the stdc++.h file in cmd too which says fatal error no such file or directory.
Also tried any instruction I was able to find: uninstall/reinstall, build in files, etc. nothing worked.
Please tell me what I’m doing wrong, and tell the solution also. Also specify the build system I should be using.
Thanks in advance and kind regards,
Rudrajit

the code and compilation error:

0 Likes

#2

Looks like you’re not using the standard library from the include of "bits/stdc++.h" instead of <iostream>. In that case you’d need to link with whatever replacement you’re using.

0 Likes

#3

If you can please tell me how to do that?

0 Likes

#4

You need to use g++ instead of gcc.

0 Likes