Dear god don't listen to the people suggesting code::blocks.
It's like suggesting people learn C++98, because the default installer has yet to ship a compiler that properly supports C++11 last i used it some years back.
Teach them how to use https://godbolt.org/, with a code/execution view.
Take https://www.jetbrains.com/clion/, if you think they really need an IDE.
Just don't even think of telling them to use code::blocks!
/u/PM_ME_YOUR_PELVIS is a false prophet. The gods are not punishing you for your brackets style, they are punishing you for not using a decent IDE.
If you are working on a Windows machine, you should definitely get VisualStudio 15 Community, if you are working on a Linux or Mac check out JetBrains CLion. It's free for educators, students and open-source projects.
CLion by JetBrains - They make fantastic IDE's for Java, Python and Javascript as well. More are sold but I've only tried out these. They're regarded by many as very convenient. Students get the professional edition for free. Check it out: https://www.jetbrains.com/clion/
WRT C and C++, Eclipse is just an IDE, not a compiler. It can use several compiler suites, and is typically used with gcc and/or g++ (depending upon which language or languages you want to use).
Netbeans works quite well as a C and C++ IDE, as well, and can also be configured for different compilers.
I've used both professionally, and both work reasonably well (debugger interface, language aware symbol and source navigation and auto-complete, static analysis, etc.). That said, I do most of my professional C programming at the command line. If I were forced to do more C++, I would break out the IDE, though.
JetBrains also has their new C and C++ IDE CLion in early access, though I've not yet used it in anger. Given the quality of their Java IDE IntelliJ IDEA, though, I have no doubt that it will be excellent. From what I've read so far, it is somewhat limited for now, though.
Of course, especially since you're new to C, you might be better served simply using your compiler (whether gcc, clang, or <shudder> cl) and an editor (doesn't matter which at this point -- I prefer Vim, but, given the size programs you'll write at first, any that you're comfortable with will do).
Once you progress past simple programs, you'll be well served learning at least one professional quality editor that supports the extensions that are helpful for C programming (e.g., Vim, emacs, Sublime, etc.) and a debugger (standalone, such as gdb, or in an IDE).
You can use it for 30 days for free: https://www.jetbrains.com/clion/download/
If you already used that up then you will either need to buy it or wait till you can do the student pack.
While you are in college, you can get all the Jetbrains products for free, as long as you only use it for educational purposes (non-commercial). After you graduate, they offer a 25% discount code on your next purchase of any Jetbrains tools (including the all products pack).
As someone who bought the all products package after using the Student free tier in college I highly recommend all their IDE's.
If you absolutely must use an IDE, I'd recommend CLion.
Personally, as for what to do in Data Structures, I recommend vim + g++/clang + gdb for debugging. The latter two are all more or less required at one point or another in Data Structures.
For vim - there's a lot of plugins and you can get all the functionality you need for DS into vim (or neovim). I use a pretty lightweight version with few plugins, but I used to use several and it made for a nice experience.
When I launched it, it told me I did not have Java installed and directed me to download Java from this link. That's what I did.
Where can I get the custom JDK? It would be great if CLion directed Mac users there instead.
edit: Spotted it under "Using OS X Yosemite?" on the download page. I tried it, but wasn't able to detect any differences. I'd also be interested to hear about what the custom JDK does differently.
JetBrains CLion with their Early Access Swift plugin on Linux.
Kind of bleeding edge, but it does work; I'm using it myself.
There is unlikely to be a viable option for Swift on Windows in the foreseeable future. Perhaps someone will make it work with cygwin but they're not going to have an easy ride.
Edit: just saw elsewhere in the thread that you want to make an iOS App. This is an entirely different ball game to just compiling Swift (Swift != iOS) and frankly even the most cursory of searches online would have told you the same thing: iOS App Development is, practically speaking, IMPOSSIBLE unless you are running OS-X.
Honestly, see the number of people who asked this same question over and over, you're not going to get a different answer just because you really want it :-) If you are lucky with your PC's hardware configuration, you may be able to run OS-X, in which case, use Xcode - search Hackintosh.
Clion by Jetbrains is probably the best one I can think of for C++ development though it's not free. A decent free one that you can find in the app store is Code::Blocks. If you're looking for something that's more of a text editor than an IDE, my personal favorite is atom by the Github team which has plenty of extensions for working in multiple languages.
Web Design: many people seem to prefer using text editors (Notepad++, Sublime Text, Atom). Brackets also seems to be popular. I personally prefer Vim, but that's just me. Also, I could be wrong about this, but I think the general consensus is that DreamWeaver is not suitable for serious web development.
C++: CLion is new, but might be good. Visual Studios would work if you're on Windows. And of course, you can always use a text editor, or use Vim/Emacs (I believe this is the approach many Linux developers will prefer over IDEs). And as /u/jussij noted, C++ isn't very commonly used for Windows applications anymore -- C# is where it's at.
Android: Unless you have reason not to, it'd probably be best to go with Android Studio (which uses Intellij), since it's what's officially supported.
Objective-C/Swift: I don't own a Mac, so can't help here.
As a student, the entire JetBrains tools are available to you for free. https://www.jetbrains.com/community/education/#students
Within Jetbrains, there's CLion which is quite good ( https://www.jetbrains.com/clion/ )
If you are going to be doing Java, Jetbrains IntelliJ is pretty much the standard and being able to switch between the two of them with as little shifting of environments is an advantage.
For tooling? I'm really going to say "not open source." The reason is that its a tool chain that you pay to have keep up to date. This contrasts with (e.g.) emacs where if you've got something that isn't up to date the response back is "you've got the source, you can fix it."
At the end of the day, I want to focus my efforts on things that have the biggest advantage. Is it more useful for FOSS to have you be a productive developer who writes code with a tool chain that you pay for or to use a less productive tool chain that is entirely open source. Note that the end result is the same - just how easy it is to use is what differs. And if you have ideas productivity enhancements for, say, Eclipse - are you going to be working on those enhancements rather than the other projects that you're more interested in?
All this goes out the window if you are, say a emacs evangelist and your job is to evangelize emacs as a developer tool... it would be kind of silly to be writing code in other tools. But, if you are working on Linux or some other project - why not use the best tools available even if they aren't open source?
In short - use the best tools that you can unless you're being paid to not use them.
Not sure why Clion doesn't have a free edition. But I get it free for being an open source project.
​
> Or an actually decent IDE like Visual Studio
https://www.jetbrains.com/rider/
https://www.jetbrains.com/clion/
Visual Studio (especially with https://oz-code.com/ ) is nicer, but I could live without VS.
For future reference: There's youcompleteme, personally I'm just waiting for Clion to mature. (I haven't used it since EAP, plus it's not like I'm the most experienced person in C++; I'm still learning)
I agree. Just thinking of configuring vim to do Java programming makes my skin crawl.
For the IDE; I would recommend CLion, hands down the best general purpose C/C++ IDE I’ve used, but if you’d rather stick with something not so “high profile”, just use Emacs.
For the distribution platform; it’s a little more finicky. C doesn’t really have a widely renowned distribution platform, the closest you’re going to get is using CMake to distribute libraries.
You should try IntelliJ Rust to get code completion and `Go To Definition`. This plugin can be used with free IntelliJ IDEA CE. Also, you can use CLion EAP for free to get debugger support.
I recommend having both a full IDE (for debugging/profiling/project management) and a Text Editor that works on most platforms for everything else.
I use:
IDE:
Visual Studio - on Windows (no other IDE can match its debugger) The Community Edition is full featured and free: https://www.visualstudio.com/downloads/download-visual-studio-vs
CLion - Everything else https://www.jetbrains.com/clion/
Editor:
For the C++ text editor/IDE try JetBrains' CLion. I haven't used it personally but everbody knows how amazing JetBrains' other IDEs are so you could give it a shot. I use both vim and GitHub's Atom but a good IDE that offers you context sensitive auto-completion and hints is just invaluable (things like "Hey you just did this. Would you like me to generate this other thing automatically?"). You could probably get there with vim but by using CLion you'll safe yourself a ton of time and headaches.
Code::Blocks and CLion, both of which work with GCC and are cross-platform, are what I use. CLion has a vim emulation which works pretty well. Netbeans and Eclipse are pretty poor C++ IDEs. And if you are doing mainly Windows work, you should definitely look at Visual Studio.
For an IDE, you could try CLion by Jetbrains. Most of Jetbrains' products are top-notch so I don't expect this to be any different.
Otherwise, I'd just recommend a text editor as others have said. Vim/Emacs/Sublime/whatever else...
edit: Sorry, I actually read your question. I'd imagine most people use a Text editor for C but if you want something more user-friendly you can try the above
There's CLion, it's a new C and C++ IDE from JetBrains. It's still in EAP, but it will probably be released very soon based on their current progress. It supports CMake and Clang compilers, and has a bunch of great features for refactoring.
I am using Eclipse CDT for C++ development right now, and I have to say that it is completely unusable. It also requires a substantial time to set it up. Qt Creator is definitely a better choice.
I would consider using Vim with appropriate setup for C++ development. A short introduction on how to get it running is here.
There is also CLion which is very promising in my opinion.
I've never used it but I'd check jetbrains offerings. The down side is that you'd have to pay for it. (https://www.jetbrains.com/clion/)
Otherwise xcode or just like vscode.
Another Redditor tipped me off about the CLion Early Access programme, which rather looks like a free edition.... So I was technically right but there appears to be a workaround.
That exit status is likely an indication that your code is accessing memory out of range or something else like that - probably on the second test, so you’re getting an abort. Use your IDE to set breakpoints and narrow down the failure location. Start at a high level like a breakpoint at the start of a test. Then you can narrow in on the problem.
Also, if you’re a student you might be able to get clion for free https://www.jetbrains.com/clion/buy/#discounts?billing=yearly
So yes, InelliJ is an IDE specific to Java, by JetBrains as others have mentioned, but it's spawned a whole family of IDEs that an commonly referred to as IntelliJ. The one you'd most likely want for C/C++ would be CLion but the education bundle gets you the whole suite of them. It's a pretty sweet deal tbh.
The projects are a lot of work but also a lot of fun IMO. Francisco does take forever to grade the projects, and he writes the project directions in a kind of confusing way. I hadn't been paying attention during a whole bunch of lectures towards the end of the semester so I missed some questions on the final, but I still ended up with an A.
Actual advice (regardless of professor):
Biggest piece of advice I can give you: all the projects would have easily taken me twice as long if I hadn't been using a nice IDE. I'd recommend CLion, but that's because I'm a JetBrains fanboy (all their IDEs are free for students btw). Auto-completion, good debugger, inspections to tell you when you make dumb mistakes, all that jazz. If you take some time to learn how to use it, this will give you a huge advantage over everyone else.
Use Git (or Subversion or Mercurial or whatever. Just kidding, use Git) for your projects. (You should be doing this for any project-based CS class.) Don't know how to use version control software? Start learning now; you'll thank yourself later. Doing a project by yourself? With a partner? Use it either way. (But please don't make your code public, at least until the semester's over; you really don't want some clown copying all your hard work.)
Don't write your programs on the iLabs. There's really no need. You can just scp
your work over every once in a while to check that it still compiles/runs. Better yet, since you're using version control software (see above), just push your work and pull the latest version on an iLab machine.
when you say comparable to visual studio i assume with a few extras like code refactoring and debugging support and not just some editor with a few plugins.
Best ones in my opinion are:
QtCreator - free - https://www.qt.io/developers
CLion - paid, free if you're a student - https://www.jetbrains.com/clion/
KDevelop - free - https://www.kdevelop.org/
theres a few others like code::blocks and eclipse and such, not my cup of tea though.
you can also consider VSCode with the official C++ plugin (by microsoft itself), its actually pretty sweet, lightweight with code completion and debugging support.
I've been using JetBrains CLion for Systems 1. It has sshftp built in, so you can edit and save files directly to stdlinux without having to use FastX or any command line text editor.
Haven't used it specifically, but i've been an Intellij user for a long time and it's excellent, so perhaps you should check out https://www.jetbrains.com/clion/ - (note: Jetbrains products are free for students)
If you aren't looking for FOSS specifically, check out CLion by JetBrains, it comes with the PyCharm Community Edition plugin bundled by default.
You can start with a 30-day free trial and apply for different discounts: https://www.jetbrains.com/clion/buy/#edition=discounts
Yeah, I saw that blog post. I'm quite happy they've at least "decoupled cmake" (a skim through the "What's new in CLion 2018.1" doesn't seem to mention any abstraction away from cmake, mostly further/better integration with it), though a plugin is still required for the IDE to automatically recognize makefiles. And given their previous comments on the topic (in 2014, granted) as well as the "Normal" severity and "Unassigned" status of the relevant feature request, I'm still not too optimistic a higher feature parity GNU make integration is coming soon.
Given how much they seem to rely on the CMakeFile.txt to understand the projects, I fear it might be difficult enough to the point where they can't assign the required developer resources.
You should learn CLion. JetBrains is a great company, and their support for CMake is also excellent for cross-platform development. It's also relatively lighter on my machine than Visual Studio, and educational licenses are free.
Last I experimented with it (~6 months ago), I could only get breakpoints and the debugger to work in CLion, which isn't free. This GitHub issue seems to confirm CLion is needed for debugging.
> I wish i could afford a license though or something along the lines of community edition like pycharm
We would all love a community edition but it isn't crazy expensive. For me, it costs 89 euros annually for a new license. 7.5 euros monthly isn't a lot if you already earning money as a freelancer. https://www.jetbrains.com/clion/buy/#edition=personal
On the other hand, if you're doing open source projects, you might qualify for a free license https://www.jetbrains.com/buy/opensource/?product=clion
Some more tips (not in Portuguese though)
Include C libraries as clib instead of lib.h, e.g.
#include <stdio.h> // Don't do this #include <cstdio> // Do this
If you want a more advanced IDE for C/C++, check out CLion, it's free for students and it has some pretty neat features (altough I only use it for debugging, at least until I learn to use gdb).
> I don't have the money.
Do you have a student email? Then using that should suffice. If you are working on a larger open source project, then that should suffice too.
I use separate editors and toolchains on Linux and Unix, but for a C and C++ IDE you should probably check out IntelliJ Clion and at least take a glance at Emacs, Vim, Atom, VS Code, and Sublime Text.
You can do C development in Eclipse on Linux/MacOS/Windows with the CDT. Under MacOS, you can also use Xcode. If you're willing to pay for a commercial IDE (and willing to use CMake), CLion is an excellent cross-platform option: https://www.jetbrains.com/clion/
The BEST option available is to use CLion by JetBrains... But it's not a text editor, but a full fletched IDE... It's the only tool you'll ever need to code in C/C++ because it's magic! Once you use this IDE, you'll never ever use anything else...
I don't know of any text editors that can debug your code... But Code::Blocks is a good and light alternative (used it on Windows... Haven't tried the Mac version though)
Not for C# but jetbrains released CLion not too long ago and while I haven't used it specifically, I am truly in love with their other products. Its probably #2 behind VS just in terms of a wonderful IDE.
I've had great experience with all the JetBrains IDEs, and even though it is pretty new, I bet CLion maintains the awesomeness of the IntelliJ platform. Otherwise, I've heard good stuff about Visual Studio. But they're both commercial, yeah.
If you can I would use Visual Studio because it really is the best IDE out there in my opinion. I always thought it wasn't too expensive and I think it's cheaper if you are students.
Jetbrains CLion just came out a bit a go. I haven't tried it myself, but have heard good things.
If you are using Qt you can always try QtCreator.
Ultimately it will depend on what you want out of the IDE and what you feel most comfortable with. So you could always try out a few for a week and see how you like them.
So you do write code. Learning a language should be fairly trivial really since a lot of the skills do transfer and Im sure you went over OS/pointers/threading in Uni so it'll be a matter of refreshing your memory. You're in a good spot!
I'd say pick a good book on C++ and I assume you probably are fairly well grounded in the OOP and find some good tutorials to follow. For myself I find that the hardest part about learning a new language is to stop thinking in terms of the languages I already know ( Kept wanting to interface everything out in Python coming from C#) Get right into /r/learnprogramming/ and they'll set you right up with learning material, remember to read other people's code and have fun learning
Also JetBrains just now released an IDE for C/C++ (https://www.jetbrains.com/clion/)
I am not a fan of Visual Studio. But to each their own.
Being a linux user myself, maybe you could check out CLion from JetBrains. I think they make great IDEs.
But, CLion is in EAP; not even beta yet.
Why is your class named books
but contains only one book?
You could have a class book
, which contains fields such as author, price, number of pages, ... Extra points if you use std::string
instead of char
-arrays.
Then have a class library
which contains all the books in an array. Note that, if you're using C-type arrays you have to allocate enough space for all books. Best to use std::vector
. As this container will manage memory for you.
For searching you would need a loop over all your books, and compare the field of the book to the search term. This should again return an array or vector to cope with multiple books falling under the search term.
As a general advice: Your inheritance is horrible. Why should search
inherit from books
? Inheritance is a specialization. Apple would inherit from Fruit for example. If you want to add a function to your library just add it directly to the class.
You don't need goto
. Use a normal loop like a sane person. goto
is much to error prone.
I hope this doesn't come to hard: I would try to understand the given code. Your code is a mess. You'll learn a lot by reading and trying to understand the code of others.
Look up:
Most important: DO NOT GIVE UP!
Get yourself a nice IDE. Try clion. Get yourself a good book. Sadly C++ hasn't arrived in the current century. Ask your teacher to recommend a good book, or even better look in the sidebar of this page.
I think you just need to make sure g++ is exposed in your PATH. Can you fire up a command prompt and run g++? If not, you might need to configure MinGW to work right. I'm pretty sure that's the only requirement to get started (https://www.jetbrains.com/clion/quickstart/).
PS theres some errors but currently I'm trying to fix them
I would say that it's mostly about all-in-one out-of-the-box experience. Smart editor (with in-editor hints, quick doc which aggregates lots of useful information, context-aware find usages, etc.), dozens of code analysis checks with quick fixes (including lifetime analysis, MISRA, Clang-Tidy, Clazy, and more), integrations like unit testing frameworks, profilers, code coverage, VCS, terminal, etc. There are tools for embedded development (like on-chip debug, peripherals view, RTOS). And support for remote setups. More about the features here: https://www.jetbrains.com/clion/features/
https://www.jetbrains.com/clion/features/dynamic-analysis.html
Looks like CLion integrates with Valgrind on Linux and Mac, but Valgrind doesn't run on Windows so I'm not sure what you should use their instead. Visual studio has its own memory profiler but I'm not aware of any standalone tools for Windows.
Também não me lembro aprofundadamente da minha experiência há uma carrada de anos atrás. Lembro-me sim da diferença quando mudei para VSCode, que foi muito grande.
> Gostava era de um IDE que estivesse ao nível do intellij, para outras linguagens além do Java e fosse Open Source ou pelo menos tivesse uma versão "comunity"...
De que linguagens estamos a falar? Tens o CLion para C/C++ e acho que o próprio IntelliJ tem extensões para outras linguagens (acho que ouvi ser usado para Scala por ex).
If you've used your evaluation period you can try using free EAP builds for the upcoming release. EAP builds for 2021.3 should be available very soon from https://www.jetbrains.com/clion/nextversion/.
I use VSCode, have barely used the others. But the common wisdom is:
Visual Studio is the best. In no small part because of its debugging capabilities. It had the problem of being a bit different to the rest, now that everybody has standardized into cmake and the LLVM tools, but nowadays it has great support for those also.
Visual Studio Code is what most people use (https://isocpp.org/blog/2021/04/results-summary-2021-annual-cpp-developer-survey-lite). I suspect most with the Microsoft C++ plugin, mainly because it's the default, but clangd is also an option. "Everybody" will use it with the cmake plugin. You are going to want to make it format with clang-format. You are going to want to use clang-tidy for static analysis.
CLion has features VSCode lacks (https://www.jetbrains.com/clion/features/code-generation-and-refactorings.html), but it's not free or open source. There is at least a VSCode plugin with generation/refactoring, not sure how good it is, and clangd may be adding such features too. So CLion benefits may disappear over time.
QDevelop may be useful if you are developing a Qt GUI app.
There seems to be a lot of people using vim.
Yes, there is KDevelop and others... Not really that popular and I can't think of any specific benefit of using them. But since everybody has standardized in cmake + LLVM tools it doesn't really matter too much what interface you use on top of them.
CLion EAP is free, but you need to download a new versions every month.
If you use snap or apt-get this isn't really much of an issue.
https://www.jetbrains.com/clion/nextversion/
CLion. Probably you can get it for free if you use your school's email address.
keep in mind that by using an IDE you might have issues with your school's assignment, so confirm with your teachers first.
It's in early preview. But it's really odd to me that they would even do this when they have CLion for C++, rider is meant to only be for .NET.
I think you should change the name because it may cause confusion. There is a C/C++ JetBrains IDE called CLion(so they are pronounced the same). BTW nice project! I am too 14 and this looks really cool😎. Good Luck!
CLion has a subscription model with the perpetual fallback option, and the payments can be set yearly or monthly. So if you need it, say, just a couple of months from the year, it worths paying only for those months. Apart from that, there are complementary options available, which include free licenses for Open Source Projects, Students, training courses and bootcamps, as well as 50% discounts for Startups. See more: https://www.jetbrains.com/clion/buy/#discounts?billing=yearly
No, there are no current plans for Community Edition for CLion. However, there are complementary options available, which include free licenses for Open Source Projects, Students, training courses and bootcamps, as well as 50% discounts for Startups. See more: https://www.jetbrains.com/clion/buy/#discounts?billing=yearly
Yes and no. Check out platformio They have their own IDE built on top of VS Code but I use it with CLion which I also use for application programming.
If you are a student, apply for JetBrains IDEs free educational licenses. Then use CLion IDE for programming in C++.
VSCode and Visual Studio are two completely different programs- the first is a fully open source (MIT-licensed) programming text editor, the latter is a commercial Windows-only IDE that's free unless you have >250 people or >$1 million in revenue (so not all that different from Unreal Engine's licensing terms).
If you're looking for a full-fledged IDE for Linux, there's CLion if you're willing to pay for a commercial program (and it looks like Jetbrains is in the process of working on a version specifically for Unreal Engine). If you're looking for something FOSS, you can use Eclipse but I don't think it's as well supported for Unreal Engine so at that point you may as well just use VSCode.
CLion by JetBrains. It’s not free, but it’s not that expensive(89USD the first year, and a bit less the next years). One of the best C++ IDE IMHO.
https://www.jetbrains.com/clion/
Eclipse has also a C++ spin based on the CDT plugin.
What do you use for source control? Do you use source control?
If yes, Xcode is a massive pain in the ass. The way it manages your project file structure is through a single file. Any time you make changes to the project (add new files, rename files, etc..) it also changes this file. So git merges can literally break your project if they corrupt this file.
I honestly don’t recommended anyone uses Xcode unless they are an iOS/Mac dev. It’s far too buggy and unreliable.
I do highly recommend any of Jetbrains’ IDEs. They are kind of memory heavy, but they have very good git integration, and their refactoring and code completion is next level. They also make IDEs for basically every purpose. CLion would suit your use case.
Also VSCode is fairly good. Any functionality you find it lacking, there’s generally a plugin to add it in. And it supports any language that someone has decided to build a plugin for.
The debugger support is a bit limited. IntelliJ doesn't support debugging, but JetBrains' other IntelliJ-derived IDE CLion does. It's free if you're a student, and expensive if you're not.
Visual Studio Code can be configured to support Rust debugging. On Windows it should work as long as you've installed the C++ extension and you're using the MSVC target with Rust. On MacOS and Linux you need to use a different plugin. Here's an article on how to setup Rust debugging for VS Code.
How are you wanting to use it? Are you wanting to just write rust or use it in an existing project?
I found this crate that makes Xcode project files from the cargo toml but idk if that is what you had in mind.
If you just want to write rust and not use it in an app or something, is there a reason you specifically want to use Xcode? If you want the whole IDE experience clion is really good but is paid. The community version of IntelliJ works well with rust but doesn’t have the debugging like clion.
I personably like nvim with COC and Ale since it’s so light weight compared to clion or IntelliJ.
Are you asking for an IDE (like CLion or AppCode) or a Mac GUI application made using C++ (maybe something built with Qt or a similar toolkit)?
To add to that, you can also use the CLion IDE to generate cmake files from STM32CubeMX projects.
Unfortunately that is paid software and might not work for you, but you could use a template like this as a boilerplate to write your own CMakeLists.txt.
My 2 cents: you can totally go with Vim/Emacs and GDB for everything, but just know that you can also use an IDE with a GUI if you want.
For instance, I'm familiar with JetBrains IDEs, so I used CLion for all the projects (except for bomb lab, I used GDB for that one).
If possible I will even say CLion + IntelliJ rust plugin.
​
If you are a student or you want to use it for an Open Source project you can have it for free. Check the different discounts https://www.jetbrains.com/clion/buy/#edition=commercial
Have you thought of trying to use Parallels and running Visual Studio for Windows on your Mac? I used Visual Studio and I loved the Debugger on Windows.
​
A free alternative if you are a student is https://www.jetbrains.com/clion/ - Lookup the Student License
Yep, CLion is JetBrain's cross-platform C/C++ IDE.
As for your second question on the settings: I use the Settings Repository plugin for all the JetBrains IDEs I use. I'm mostly sure it's available for all of them. It works great. It lets you use a git repo to centralize/share settings between numerous instances of their IDEs (also a great way to share settings between multiple people). Having mine on GitHub has saved me a ton of time not having to tediously match settings/preferences between all their IDEs I have on my personal laptop alone, much less other instances on work machines. I highly recommend it.
> no è che me mi han detto figherrimo e una spanna sopra tutti gli altri..
Beh, sono arrivato giusto al wizard per accorgermi che mi domandava di dargli un compilatore. Non ho detto altro io.
SEMMAI: Il tuo "gratis" sarebbe questo? Immagino comodo se sei lo sviluppatore affermato di un emulatore, se sei all'università (e anche anche)... Ma certamente non glielo puoi tirare dietro al primo studente delle superiori random che ti passa.
> ed io mai visto usare altro che C
E ok. Ma non penso ti abbiano spiegato ollydbg il primo mese (cioè, neanche il primo anno, ma tralasciamo).
>Ansi
Like I said, it can be very complicated to learn. I'm familiar with gdb, but I don't know much about CLIon.
A quick google search turned up this:
https://www.jetbrains.com/clion/documentation/
There's a video labeled "Debugging in CLIon". I imagine that will get you through the first few hurdles.
EDIT: I just watched the video, this is going to be extremely helpful for you.
I'm using CLion IDE (from JetBrains https://www.jetbrains.com/clion/) and PlatformIO (http://platformio.org) framework for compiling/uploading/managing libraries for AVR and other platforms. CLion has pretty good code insight features, I like it much more than Arduino IDE. PlatformIO allows to do all things without Arduino IDE and provides integration with CLion and other IDEs. For CLion it generates cmake file which is required for code insight support and run configurations for building/uploading FW.
CLion (JetBrains' C/C++ IDE) is always a top recommendation when it comes to C++ IDE's.
Check this article for info or this video for a demonstration of its refactoring capabilities.
The nice thing about something like atom or sublime is that they're super light and fast. Not a full IDE by any stretch, but atom with language packs and a terminal and or script runner plugin can let you do a lot of dev without hands leaving the keyboard. And it's free.
I'm a huge fan of the Jetbrains IDEs which are hands-down the best Out there. https://www.jetbrains.com/clion/ they have community versions for some of their apps, and they do 30 day free trials for the paid versions. Worth the money IMO, and they have a new subscription model that might be more economical.
The main things I appreciate an IDE for are: refactoring, code formatting, templates, auto complete, integrated version control, line by line debug. If you really only care about one or two of those, or if you don't mind using several different apps, the intelligent text editor and some tools like source tree might be enough:)
We currently have a very short CMake tutorial in help: https://www.jetbrains.com/clion/help/quick-cmake-tutorial.html. And we are going to extend it quite soon.
And of course you can use official CMake documentation and wiki. We also hope to get smth done together with the Kitware. Trying to communicate with them now about this. Not sure about the result and ETA.
Jetbrains created an ide named CLion. I haven't used it, but based on the quality of their other tools, it's probably really good. It works on OSX, Windows, and Linux.
I know this probably won't help resolve your problem, but is there a reason you're using Dev-C++?
I thought it was pretty decent a long while back, but it hasn't really been updated in about a decade if I had to guess...
If you're a student you can get CLion for free, and there are other modern IDEs if you want to use one.
The only reason I suggest using a newer IDE is that you'd get to use a more modern toolchain and can use things like c++11 features.
Learning how to use a debugger will save you tons of time in the long run. We used GDB when I took 252, which is pretty basic, but it should be passable for the kinds of projects you'll be doing for the course.
Personally, I like using Visual Studio, although there's usually a little porting work you have to do before you can compile on the CS department's Unix machines. CLion also looks promising (and free for students), although I've never personally used it. It also runs on Linux.
> I'm not sure what this means, line 23 is blank
You probably want to look above line 23 for a syntax error somewhere. You're probably missing a brace or bracket.
If you're working with the SDK on your desktop, you might want to look for a good C IDE. A good IDE will highlight these kind of errors for you before you do a build.
I use CLion as my Pebble C IDE on Windows. They also have an OS X version.
I agree, Rust support in IDEA would be great as it's my favorite IDE. They already have good support for C/C++ so integrating Rust should hopefully not be a big effort.
If you're looking for a C++ IDE that runs in Linux or OS X, CLion (https://www.jetbrains.com/clion/) from JetBrains is pretty awesome. It's still Alpha/Beta/Whatever but works quite well and can help ease someone new to C++ into the language a bit more easily.
Another advantage is, it's free until they hit 1.0. After that it should cost what their other IDEs do ($99).
Although it is still in Early Access, CLion from JetBrains! looks like a very nice IDE. I have tried it out on my own and there are few major complaints that I have about it.
If we are talking about non-Windows platforms I prefer to use XCode on my mac. Here is step-by-step tutor how to create simple console app using XCode http://meandmark.com/blog/2013/11/creating-a-command-line-application-with-xcode/
Also, there are few free IDEs for Linux like Eclipse (with CDT plugin) and Netbeans. Also there is CLion (https://www.jetbrains.com/clion/) which is really powerful, but you should buy a license.
> Not sure how you got to OpenCV, but you've also chosen the other library which has a NDK component and from what I can tell Android Studio doesn't support NDK in a first class manner (someone correct me).
I won't. But it seems that might change some time soon: https://www.jetbrains.com/clion/