Ive been using dual booted windows+linux for a time now. I used sublime text and love it. Now I bought m2 macbook air but I see that sublime isn't working pretty well (for ex. doesn't reopens my files, snippets not working). Is it a bug? If not can you suggest me a text editor (prefer complexity over lightweight)?.
Any suggestions are appreciated and will be read.
I have been using sublime for 2 years on mac m1 everything works fine maybe you should try to reinstall it.
I will indeed. Thanks
go to project and save your current config in save " workspace as " , whenever the config is lost , go to project and click "open project" and open the config file u saved earlier. Moreover : To exit sublime : use command + q not the red cross .
VS code
Couldnt install stdc++.h . Did you? How?
Get gcc? A simple "brew install gcc" should suffice. Also, note that "g++" is symlinked to clang, so you might have to manually symlink "g++" to gcc.
oh, is terminal linked to vs code? I didn't know that. Plus it gives HOMEBREW_NO_INSTALL_CLEANUP error, any ideas?
installed. still getting std.h error wtf
is there any way you can type stdc++.h in your macintosh hd file and tell me where the file is?
What errors are you seeing?
fatal error bits/stdc++.h not found
And you are currently using brew gcc?
I first installed Mac developer thing which downloaded clang, now I downloaded brew (which is working fs) but yeah
Refer to this thread for clang++. After adding
stdc++.h
, do this aswell. Also does brew gcc give you anyassert.h
errors?I will check it thanks!
Create a directory "bits"(without quotes) near your .cpp file. Next, put "stdc++.h" (without quotes) file in that dir and paste this code into it.
Now, in .cpp file change
#include<bits/stdc++.h>
to#include"bits/stdc++.h"
.It will work on both your system and online judges.
What name should I give to the lib file? (its stdc++.h)
Edit: Omg, it worked! Thank you very much. I can't tell how grateful I am right now. I have been trying to do this till yesterday.
Do you always code like this? Like adding the bits folder in every directory you work?
No, but if you can't include the original file, I think this might be the easiest solution to go.
(Technically yes, but I do it for a different purpose.)