Offline
Newbie
Karma: 0
Posts: 45
|
 |
« on: February 08, 2013, 03:44:44 pm » |
Hello and thanks a lot! I'm relatively new to programming and stumbled upon a little problem: apparently, Java does not support (or at least is not good for) serial communication. As a result, I am forced to learn C++ because it apparently has a class built to handle serial communication.
Now, before everyone gets mad, I am really really sorry. I did do research but still have questions: 1. There are a lot of C++ compilers. What is the difference between them (other than their IDEs and that they may be built for different platforms. That is to say... do they interpret parts of the language differently or have different libraries etc?) Is there a standard that professionals use? 2. Should I Get a compiler that comes with its own IDE or use netbeans as the IDE (because netbeans is an industry standard -- at least for Java). Is it disadvantageous to not use a compiler's given IDE (assuming it comes with one). 3. What is the best and free C++ Compiler? -- This question actually got answered tons of times online. I already have an idea but I welcome your guy's opinion.
Thanks a ton!
Edit: Relating to question 1, if compilers truly do differ, which is best for Serial communication?
|
|
|
|
|
Logged
|
|
|
|
|
Milton Keynes UK
Offline
Tesla Member
Karma: 88
Posts: 6287
-
|
 |
« Reply #1 on: February 08, 2013, 03:49:21 pm » |
There are numerous free C++ compilers and none that are definitively best of all. I would say that for personal use the choice of compiler should usually be determined by your choice of IDE. If you use Visual Studio, you'll obviously end up using the Microsoft compiler. If you use Eclipse or one of the other open IDEs you'll probably end up using GCC. But I'd say that choosing an IDE you like is what really matters.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 45
|
 |
« Reply #2 on: February 08, 2013, 03:56:30 pm » |
So compilers should fit the IDE is what you are saying. I wonder why it even matters? Anyway, then what compiler fits netbeans? That is the IDE I am used to.
|
|
|
|
|
Logged
|
|
|
|
|
Central MN, USA
Offline
Faraday Member
Karma: 35
Posts: 5914
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
|
 |
« Reply #3 on: February 08, 2013, 04:07:10 pm » |
I guess the OP is looking for a C/C++ integrated development environment (IDE) instead of a compiler. GCC is a compiler collection that includes c/c++ compiler. If you want and IDE, google dev C++ from bloodshed. It's free. You CAN use serial in java. Processing has a serial library but it's not straight java.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 57
|
 |
« Reply #4 on: February 08, 2013, 04:12:44 pm » |
Anyway, then what compiler fits netbeans? That is the IDE I am used to.
You are aware that there is a Netbeans C++ bundle available for download. http://netbeans.org/features/cpp/
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 45
|
 |
« Reply #5 on: February 08, 2013, 04:48:26 pm » |
It doesn't come with a compiler... you need a third-party compiler... hence my question... Anyway, so what I'm understanding is that really any compiler is good. They are all pretty much the same. Thanks!
|
|
|
|
|
Logged
|
|
|
|
|
Central MN, USA
Offline
Faraday Member
Karma: 35
Posts: 5914
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
|
 |
« Reply #6 on: February 08, 2013, 05:23:04 pm » |
If you want a compiler, then use the gcc. Dev C++ is bundled with gcc.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 57
|
 |
« Reply #7 on: February 08, 2013, 05:30:03 pm » |
It doesn't come with a compiler... you need a third-party compiler... hence my question...
Yes... but read the release notes: NetBeans C/C++ pack has been tested with the following compilers and tools (Windows): Cygwin 1.5.21 Cygwin gcc-core (C compiler) 3.4.x Cygwin gcc-c++ (C++ compiler) 3.4.x Cygwin gdb (GNU Debugger) 6.5.50 Cygwin make 3.80 http://netbeans.org/community/releases/60/cpp-setup-instructions.html
|
|
|
|
|
Logged
|
|
|
|
|
Offline
God Member
Karma: 9
Posts: 836
|
 |
« Reply #8 on: February 08, 2013, 06:48:51 pm » |
I use Netbeans for Java and C++ and it works OK.
Setting up for the C++ is quite a hassle, you have to install the Cygwin system on your computer which may or may not cause difficulties. Once you have done this, there are at least 2 c++ compilers which you can use.
Otherwise, I would suggest Visual Studio, for which there is a free version, or at least there was about a year ago when I installed it.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Sr. Member
Karma: 7
Posts: 386
|
 |
« Reply #9 on: February 08, 2013, 06:50:47 pm » |
Kind of a different direction, but MS VisualStudio also has a free C# compiler for .Net which might be closer to Java for you.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 57
|
 |
« Reply #10 on: February 08, 2013, 06:53:16 pm » |
Otherwise, I would suggest Visual Studio, for which there is a free version, or at least there was about a year ago when I installed it.
It's still free but after 30 days you have to register for a license ID. It is not bad and the VS2012 has part of C++11 implemented.
|
|
|
|
|
Logged
|
|
|
|
|
|