Random Homebrew: Snake
Friends: Coding 'n Cracking - Nymphaea - PS3 Forum - darkforestgroup - daxhordes.org - Tgames - coldbird - gopsp.it - pspstation.org - prometheus - hgoel.info - MakeSmartTV - ps vita

Compiler Question And A Doubt

Discuss about your favorite (gaming...or not) devices here. The most popular ones will end up getting their own categories
Programming discussions for your favorite Device

Compiler Question And A Doubt

Postby Wdingdong » Tue May 15, 2012 1:22 pm

I use DevC++ IDE to practice C and C++. It has an in-built compiler(gcc).
So my question is, can I use this in-built compiler of DevC++ along with any other IDE like Eclipse or NetBeans?

Doubt: I started studying C on my own recently. My first year college syllabus includes C++ and Java. So, I have to learn all these three languages at the same time. I mean, I am learning structured and object oriented paradigms at the same time. I think, I am going in the wrong way.
Can you give me some advice/suggestion?
// Big thanks to people who share information !!!
Wdingdong
 
Posts: 127
Joined: Tue Aug 02, 2011 5:34 pm

Re: Compiler Question And A Doubt

Postby Xian Nox » Tue May 15, 2012 1:48 pm

You can use the gcc compiler with them afaik, but I would strongly recommend you to use the latest version. The one in Dev-C++ is quite outdated.
Spoiler
Disturbed0ne wrote:PS. EVERYONE should like girls. they're just so soft. :oops:
Moderator 80% corrupt. That's funny, I don't feel corrupt. In fact, I feel pretty good.
What looks like a blog of mine can be seen here.
User avatar
Xian Nox
Moderator
 
Posts: 6052
Joined: Fri Nov 05, 2010 5:27 pm
Location: /home/xian/n-field

Re: Compiler Question And A Doubt

Postby m0skit0 » Tue May 15, 2012 2:38 pm

As Xian Nox points out, I would not use Dev-C++, it's outdated. Eclipse IDE is a very good choice and you can do C, C++ and Java on the same IDE.

Wdingdong wrote:So, I have to learn all these three languages at the same time. I mean, I am learning structured and object oriented paradigms at the same time. I think, I am going in the wrong way.

Depends on how confident you feel. If you feel you can do it, go ahead. Also C++ is a superset of C, so you would only have to learn OOP specifics. If you learn C/C++, Java is easy (Java is strongly based on C++)
I wanna lots of mov al,0xb
Image
"just not into this RA stuffz"
User avatar
m0skit0
Guru
 
Posts: 4787
Joined: Mon Sep 27, 2010 6:01 pm

Re: Compiler Question And A Doubt

Postby Wdingdong » Tue May 15, 2012 4:24 pm

Xian Nox wrote:You can use the gcc compiler with them afaik, but I would strongly recommend you to use the latest version. The one in Dev-C++ is quite outdated.


m0skit0 wrote: I would not use Dev-C++, it's outdated. Eclipse IDE is a very good choice and you can do C, C++ and Java on the same IDE.


Thanks. I will get a new compiler and use Eclipse instead of Dev-C++. I was just avoiding Eclipse and a new compiler because I have very low Internet speed to download anything. But, I'll download it anyhow.

m0skit0 wrote:Depends on how confident you feel. If you feel you can do it, go ahead. Also C++ is a superset of C, so you would only have to learn OOP specifics. If you learn C/C++, Java is easy (Java is strongly based on C++)


What if I focus on structured programming using C++ as it is same as C and quit learning C?
Or should I continue learning C? Because I just love C.

EDIT: Okay, I'm not quitting anything. I'm going ahead for all three 8-) . I only hope, I don't generate a bad programming practice. Also, you all will be there :) Thanks.
// Big thanks to people who share information !!!
Wdingdong
 
Posts: 127
Joined: Tue Aug 02, 2011 5:34 pm

Re: Compiler Question And A Doubt

Postby m0skit0 » Wed May 16, 2012 5:30 pm

Wdingdong wrote: I will get a new compiler and use Eclipse instead of Dev-C++.

Don't get us wrong. GCC IMHO is best C compiler, but you just need a more recent version. If you're going to use Windows (which looks like so), download MinGW. For developing with C/C++ in Eclipse you need the CDT plugin. There's an Eclipse version that already incorporates this plugin. Oh and also you need to have Java installed to run Eclipse (it's made in Java). Also, if you want to develop for Java, you also need to download the JDK.

Wdingdong wrote:What if I focus on structured programming using C++ as it is same as C and quit learning C?
Or should I continue learning C? Because I just love C.

I would definitely focus on C first. And if you like it, then it's strong reason to do it ;)
I wanna lots of mov al,0xb
Image
"just not into this RA stuffz"
User avatar
m0skit0
Guru
 
Posts: 4787
Joined: Mon Sep 27, 2010 6:01 pm

Re: Compiler Question And A Doubt

Postby Wdingdong » Wed May 16, 2012 6:10 pm

Thanks for all the links and the information. So, now I have all the things ready. BTW, I downloaded the Eclipse Classic(Because I thought it support all the languages).

m0skit0 wrote: If you're going to use Windows (which looks like so)


For some weeks I'll have to practise on Windows. But, soon I'm going to use Ubuntu. I don't have good download speed, so I'm going to purchase it from a near by grey market(Yes, some people here sell Ubuntu on CDs like Windows.)

PS: Get ready for my questions :D
// Big thanks to people who share information !!!
Wdingdong
 
Posts: 127
Joined: Tue Aug 02, 2011 5:34 pm

Re: Compiler Question And A Doubt

Postby m0skit0 » Wed May 16, 2012 8:31 pm

Wdingdong wrote:BTW, I downloaded the Eclipse Classic(Because I thought it support all the languages).

Doesn't matter because Eclipse works with plugins. You just download and install them to get the features. Go to... err I don't remember right now since I'm on Windows (and I don't have Eclipse on Windows :lol: ). It was on Window menu -> Install new software IIRC.

Wdingdong wrote:Yes, some people here sell Ubuntu on CDs like Windows.

Nice! ;) Yeah except selling Windows copies is illegal, while Ubuntu is not ;)
I wanna lots of mov al,0xb
Image
"just not into this RA stuffz"
User avatar
m0skit0
Guru
 
Posts: 4787
Joined: Mon Sep 27, 2010 6:01 pm

Re: Compiler Question And A Doubt

Postby Wdingdong » Thu May 17, 2012 2:49 pm

m0skit0 wrote: Window menu -> Install new software IIRC


I got it. It's in the Help menu. And I installed the CDT plugin.

I tested all the three languages(C/C++/Java) and they all work fine. Eclipse is little advanced but good.
BTW, what is a .upc file? This is what I get when I create C project.
// Big thanks to people who share information !!!
Wdingdong
 
Posts: 127
Joined: Tue Aug 02, 2011 5:34 pm

Re: Compiler Question And A Doubt

Postby m0skit0 » Thu May 17, 2012 3:56 pm

Never heard of it. Anyway you don't have to care about Eclipse's own files.
I wanna lots of mov al,0xb
Image
"just not into this RA stuffz"
User avatar
m0skit0
Guru
 
Posts: 4787
Joined: Mon Sep 27, 2010 6:01 pm

Re: Compiler Question And A Doubt

Postby Wdingdong » Sat May 19, 2012 12:57 pm

Problem: Whenever I compile and run the program(Eclipse), I have to go to the task manager to end the process, I mean the execution.
Any solution?

BTW, I'm always confused which type to choose from all of these:
Untitled.png
Which one to choose?
Untitled.png (15.44 KiB) Viewed 460 times
// Big thanks to people who share information !!!
Wdingdong
 
Posts: 127
Joined: Tue Aug 02, 2011 5:34 pm

Next

Return to Programming

Who is online

Users browsing this forum: No registered users and 0 guests