[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
How do I program in C++? Visual Studio or Sublime Text?
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 58
Thread images: 6
File: c_0.png (25 KB, 195x195) Image search: [Google]
c_0.png
25 KB, 195x195
How do I program in C++? Visual Studio or Sublime Text?
>>
VS or QtCreator. Clion if you have money.
>>
>>52157165
CLion
>>
Eclipse is cool too.
>>
>>52157165
Emacs
>>
>>52157165
>c++
why?
>>
>>52157189
>Clion if you have money.
Free with student email.
>>
>>52157165
Since you are new, I'd suggest Visual Studio. CLion's debugging isn't as robust.

Don't use anything but the two.
>>
>>52157189
Pirate that shit.
>>
>>52157220
That's great for you. I wish I could get it for free.
>>
>>52157165
If you don't have a requirement of Windows, and you haven't learned much in the way of other languages, I highly recommend developing on Linux. You can start with a hello world that you compile with
 g++ -o program.run main.cpp 

then
 ./program.run 
to run it.

Now that you see how simple that is, pick an IDE. You might only need a text editor like Sublime, and you can compile it yourself, or you can then upgrade to an IDE for debugging, like CodeBlocks. I highly recommend CodeBlocks for C++. It's on Linux and Windows, but on Windows you have to use a GCC for Windows (TDM-GCC). This is *NOT* cygwin, and does *NOT* require cygwin DLLs, so it can make real Windows executables.
>>
>>52157165
Vim is all you need
>>
>>52157221
I recommend the address sanitizer from gcc or clang on linux for debugging. It helps understand alot of thinks quite quickly
>>
>>52157386
It's almost saddening how easy modern address or threat sanitizers and static analyzers make debugging nowadays.
>>
>>52157165
Use GCC or Clang. MSVC is annoying to use.
>>
>>52157299
both GCC 3.4.5 and Clang have Windows ports, so you still get most of the functionality on Windows.
>>
>>52157165
g++ and a text editor, faggot
>>
What's best: GCC or clang?
>>
>>52157192
Why should you pay for an ide? The fuck?
>>
>>52157414
Yeah, fucking casuals, how dare they get into programming, everyone should have to write an OS and compiler in VAX assembly language before they're allowed to do anything, etc. etc.
>>
>>52157581
I use both, but prefer clang.
I use YouCompleteMe with vim for autocompletion, which uses clang so having consistent warnings/error is nice.
>>
>>52157466
GCC and clang produce slower code.

GCC is so shit that switch statements are actually faster than ifs. But what do you expect from a the compiler that will compile for anybody, the fucking slut.
>>
>>52157704
Nah, don't worry. I'm actually really happy about them. It was fucking amazing to use these tools for the first time.

I still don't think that the casuals will be able to handle large C++ programs, though. The plebs are doing web-dev, but even in web-dev there are still plenty of jobs for non-casuals because companies actually want their websites to perform well and not depend on 40 jquery plugins and 4 css frameworks that make the initial page take 12 seconds to load.
>>
>>52157758
MSVC or C++ rice compiler.

Also where did you take that MSVC produces slower code?
>>
Visual Studio Code any good?
>>
>>52157897
Of course not. It's made by Microsoft. Also, they took the editor(the worst part of Visual Studios) and made a product out of it, how can it be any good?
>>
>>52157488
GCC 3.4.5 is pretty old. TDM-GCC (which is essentially a windows port) is on 5.1.0 right now!

Which is awesome!
>>
>>52157925
That's the best part of visual studio though, anon.
>>
Which Compiler compiles (and links) the fastest? I have a somewhat large C++ project with some friends that we develop in our free time, but even with PCH, rebuilds are... slow.
>>
>>52157940
It just isn't
>>
>>52157218
Because best language
>>
>>52157165
you don't since you sound like a pleb who probably doesn't even know what a pointer is.
>>
>>52157983
Top kek.
Nicely memed, my senpai
>>
>>52157758
Show benchmarks or stfu.
>>
>>52157952
Use a Makefile to only compile files with changes.
>>
OP Here. I'm not gonna compile anything guys, just contribute to an existing repository. Do you recommend just going with a text editor such as Sublime some tool that allows further debugging?
>>
>>52158256
Well... how are you going to know that your code works?
>>
>>52158381
local build but i already have that set up. with an script that i dont even know what compiler it uses
>>
File: R8JTy5y.gif (235 KB, 537x327) Image search: [Google]
R8JTy5y.gif
235 KB, 537x327
>>52158457
>>
File: c++.png (68 KB, 1308x398) Image search: [Google]
c++.png
68 KB, 1308x398
>>52157997
Does YOUR language have direct source obfuscation built into the standard library?
I don't think so.
>>
>>52158658
doesn't look obfuscated to me.

maybe you're just dumb?
>>
>>52158658
you can always outsource the job so it comes obfuscated
>>
>>52157165
install gcc and start working
>>
>>52158256
>>52158256
>>52158256
>>52158256
>wants to contribute
>doesn't want to compile or test code, or even check for syntax errors
>>
>>52157897
Only if you wanna develop web applications and shit.
>>
>>52159090
Probably just collecting the $150.000 bounty on the bug report where you need to replace all instances of master or slave by leader and follower or something.
>>
>>52157165
VIM
I
M
>>
>>52159284

Why though? It does other languages too.
>>
>>52157833
It doesn't, I'm saying that it's one of the best publicly written ones.

>>52158134
I'm not going to fucking handhold you. Learn about GCC's jump table and it's flaws.
>>
qt creator
>>
>>52157165
Atom
>>
>>52159090
>doesn't want to compile or test code, or even check for syntax errors
except i do

>>52159389
kek'd
>>
>>52157361
only correct answer.

>>52157581
Clang is nicer in a few ways but I've yet to run into a situation where one gives me a sufficient advantage that I'd spend the tiny amount of time to install it if I had the other already.
>>
Do you wanna create GUIs?

If so, Visual Studio, otherwise Sublime Text + Whatever compiler you want.
>>
File: 1435241549344.jpg (15 KB, 201x251) Image search: [Google]
1435241549344.jpg
15 KB, 201x251
Use QT if you want to create GUI software, it's full C++14 compatible using Clang or GCC unlike VS, and CLion is also great.
>>
>>52157241
Just rm the trial license cookie!
>>
>>52157688
Because it's JetBrains(C)(R) <angel chorus in background> I dunno, man, they make best IDEs I've ever seen.
I prefer codeblocks for small projects, though.
>>
>>52158658
>namespace named __1
Seriously? What the fuck?
Thread replies: 58
Thread images: 6

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.