473,773 Members | 2,398 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C++ with Unix or Linux

3 New Member
Hi,

I am new to C++ with Linux or Unix. Can any one clear my following doubts,

1) Is working with c++ for linux and unix are same?
2) If I want to learn c++ under Unix or Linux, which unix or linux OS should I use?
3) Which c++ compiler should I use for Linux and Unix?

Note: If working working with Linux and Uinx is different please give me the details for both

Thanks In advance
Nandu
Aug 28 '07 #1
6 2086
smalpani
29 New Member
Hi,

I am new to C++ with Linux or Unix. Can any one clear my following doubts,

1) Is working with c++ for linux and unix are same?
2) If I want to learn c++ under Unix or Linux, which unix or linux OS should I use?
3) Which c++ compiler should I use for Linux and Unix?

Note: If working working with Linux and Uinx is different please give me the details for both

Thanks In advance
Nandu


1)Almost. Start with any you will know about the other. Start with Linux, I would say it comes with "new imploved" and all that open software funda

2)Any that you can get hold of. But if you want to install a variety of software you may want UBUNTU linux, yet for a programmer anything with the latest kernel should be ok.

3.Any but its always good to use gcc, you will find a lot of support from people that are using it
Aug 28 '07 #2
anand2929
3 New Member
Shall I use GNU compiler insted of gcc.? Which one is good? and one more is there any is there visual editor of c++ with unix (like Visual Studio for windows)
Aug 28 '07 #3
sicarie
4,677 Recognized Expert Moderator Specialist
Shall I use GNU compiler insted of gcc.? Which one is good? and one more is there any is there visual editor of c++ with unix (like Visual Studio for windows)
GCC stand's for GNU's C Compiler - it is the same thing. One of the issues with GCC is that it is invoked through the command line -

user@box# gcc myProgram.c

(Where user@box# is the prompt of a shell window, gcc is the command to compile, and myProgram.c is the program you want gcc to compile) And that's just to compile - you then have to run the program, named a.out by default, etc...

If you are looking for an IDE, I would recommend Eclipse - if you end up going with Ubuntu (probably the easiest distribution for people who are new to Linux to use), it is available for download in their package manager. A warning about Eclipse, I have heard that it is possible to run/compiler C/C++ code in it, however I have never done it and heard that it requires some set up. This would be a good topic to Google ("ubuntu eclipse C setup" or something) before you make a decision.

::Edit::
Here is a link to yolinux.com's page of C/C++ resources. I've found them to be a pretty good site in the past - it should be able to help you set up your workstation.
Aug 28 '07 #4
mac11
256 Contributor
d'oh! co-worker slowed down my response so I have nothing to say
Aug 28 '07 #5
anand2929
3 New Member
OK...Now I got a doubt like which Linux do i need to use. Do different Linux will have different commands or commands are same for any version of linux (RHEL, Solaris, etc..)
So please suggest me which Linux to use and which C++ editor best one for that version of Linux OS.

Thanks in Advance
Nandu.
Aug 28 '07 #6
sicarie
4,677 Recognized Expert Moderator Specialist
OK...Now I got a doubt like which Linux do i need to use. Do different Linux will have different commands or commands are same for any version of linux (RHEL, Solaris, etc..)
So please suggest me which Linux to use and which C++ editor best one for that version of Linux OS.

Thanks in Advance
Nandu.
The easiest to use is probably Ubuntu. After that would come Red Hat/Fedora. Other versions like Gentoo, Debian, SuSE, etc... (to be picky here, Solaris is Unix, not Linux, though it behaves mostly the same most of the time), will be more difficult to install and configure, though will give you more power and a better idea of what is going on with your system.

I would recommend Ubuntu if you have not worked with Linux before, it is one of the easier versions to get installed and running. You will need to install your C++ compiler of choice (if you use Ubunut, it's as easy as "sudo apt-get install g++), but GCC will run on all of the systems I've mentioned, and more that I haven't. It's mostly a matter of what you want to use and how much time you want to put into it.
Aug 28 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

22
2677
by: markus | last post by:
Hi, There are more than 1000 defined system calls in the Unix standard specification, however, a majority of them are optional and the availability of system calls are dependent on the OS implementation itself. The question I have is: How do you determine which system calls are available on any Unix/Linux machine?
18
5651
by: Sharon | last post by:
is microsoft going to develop .Net for Unix? or at lest CLR for Unix? 10x
9
2202
by: fidlee | last post by:
I dont know if this is the right place to ask this question. i got this book "The C Odyssey. Unix - The Open, Boundless C" It is a 1992 edition book The book speaks of all the unix specific functions Just quoting an example below: void main()
22
3671
by: Xah Lee | last post by:
The Nature of the “Unix Philosophy” Xah Lee, 2006-05 In the computing industry, especially among unix community, we often hear that there's a “Unix Philosophy”. In this essay, i dissect the nature and characterization of such “unix philosophy”, as have been described by Brian Kernighan, Rob Pike, Dennis Ritchie, Ken Thompson, and Richard P Gabriel et al, and in recent years by Eric Raymond.
0
1262
by: candra | last post by:
Learn What Hackers Know? -Unix - Vulnerabilities & Advisories -Unix - Security Tools -Unix - BSD, Freebsd, Etc -Unix - Solaris, Sunos Etc -Unix - Other Flavors (Irix, HPUX, AIX Etc) -Linux - Vulnerabilities & Advisories -Linux - Security Tools -Linux - Security-Oriented Mini- And Micro-Distributions
2
1379
by: nitinpatel1117 | last post by:
Hi the question that i have is probably really simple. but i'm more used to a windows environment. basically, my current CMS (built in PHP) is built to run in a windows environment. i was told that i need to test it on a linux box as it will soon be transferred over to a linux box. I managed to get php and mysql installed on the linux box, only to find out that the CMS is no longer going to be hosted on Linux, but unix. I don't have a...
1
27801
Nepomuk
by: Nepomuk | last post by:
In most modern distributions of Linux and Unix (at least ones with graphical environments like KDE, Gnome or XFCE), you get to mount your partitions easily from the desktop. In some cases however, it isn't that easy. Note, that all of these commands have to be run in a terminal as root user. To open a terminal (sometimes called a console), either press ALT+F2 and type xterm (alternatives could be konsole or terminal) or press CRTL+ALT+F1 to...
0
1045
Nepomuk
by: Nepomuk | last post by:
I'm posting this question here, as I assume more people will read it here and it's directed especially at people who DON'T have any Linux or Unix experience (and would therefore not look in the Linux/Unix Forum). I'm planning a new article for the Howto Section to clear up the common misconceptions about Linux, for example:It's difficult to install You have to know shell script You have to compile everything yourself You have to pay for...
0
9621
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10039
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9914
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8937
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6717
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5484
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4012
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3610
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.