473,761 Members | 9,266 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

c++ or C on unix

Hi,

I have been programming c, c++ on windows.

What is the difference in programming on Unix.. are there different
syntaxes, functions on Unix.
what are mandatory different steps on unix. Whst is the difference
between programming c++ on windows and unix. Which compiler one has to
use on unix.

Please put some light on this

Thanks

Lee

Dec 1 '06 #1
7 1980


On Dec 1, 12:24 pm, yang__...@ausi. com wrote:
Hi,

I have been programming c, c++ on windows.

What is the difference in programming on Unix.. are there different
syntaxes, functions on Unix.
what are mandatory different steps on unix. Whst is the difference
between programming c++ on windows and unix. Which compiler one has to
use on unix.
If you are planning to use Linux, g++ is your common choice.
>
Please put some light on this

Thanks

Lee
Dec 1 '06 #2

ya*******@ausi. com wrote:
Hi,

I have been programming c, c++ on windows.

What is the difference in programming on Unix.. are there different
syntaxes, functions on Unix.
what are mandatory different steps on unix. Whst is the difference
between programming c++ on windows and unix. Which compiler one has to
use on unix.
The gnu compiler collection is the usual choice on most unix systems.
There are some others but that is the major one used and comes
installed most of the time.

The standard library is of course the same though the bugs will of
course be different. Syntax and all that will be the same to. You'll
be working with Makefiles and/or autotools instead of VS projects.
Some people don't like this. I like the visual studio debugger a bit
better but for the most part I prefer working in XEmacs on linux.

GUI wise it will be completely different unless you used one of those
multi-platform libraries. Talking to the system is also very
different. Unix usually contains libraries that adhere to POSIX
standards....so me win32 libs come close.

I prefer man and info to MSDN and you won't get a more powerful tool
than the unix shell.

But really, it's all the same. The function names might be
different...som e of the steps will differ, but the basic theory behind
it all is all very much the same.

Dec 1 '06 #3
On Dec 1, 5:24 am, yang__...@ausi. com wrote:
Hi,

I have been programming c, c++ on windows.

What is the difference in programming on Unix.. are there different
syntaxes, functions on Unix.
what are mandatory different steps on unix. Whst is the difference
between programming c++ on windows and unix. Which compiler one has to
use on unix.
Been doing some programming on both, and as others have said, it's not
really that different. The problems comes when you need to do something
platform-specific like system-calls or GUI. When I did my Linux-work I
used Qt as the graphical framework, which was nice. The good thing
about Qt is that it provides much more than GUI functions, so if you
use Qt you can almost totally ignore the APIs of the system and work
agains Qt, unless you're doing very system specific things.

--
Erik Wikstrm

Dec 1 '06 #4
ya*******@ausi. com wrote:
What is the difference in programming on Unix.. are there different
syntaxes, functions on Unix.
Both C and C++ are programming languages which are defined by standards.
Therefore the only way that different syntaxes may appear in Unix regarding
your prior experience with C and C++ is if the compiler you use/will use
doesn't follow the standards or implements non-standard extensions.

Regarding the functions bit, as far as I see it all depends of the libraries
which were/will be present in your system. The standard libraries should be
the same in every platform but other libraries, like the windows API, will
not be available. So in the end it will be a question of what APIs are
available.

what are mandatory different steps on unix. Whst is the difference
between programming c++ on windows and unix. Which compiler one has to
use on unix.
That depends of what you consider what is "programmin g C++ on windows". For
example, if you wrote GUI applications using wxWidgets then I believe there
wouldn't be any difference. On the other hand, if you used some API which
isn't available beyond the windows platform then you will be forced to use
some other API, which will end up being something completely different.

Regarding compilers, I believe that GCC (which comes with g++, the C++
compiler) is available in every linux/*bsd/whatnot distribution.
Hope this helps
Rui Maciel
--
Running Kubuntu 6.10 with KDE 3.5.5 and proud of it.
jabber:ru****** **@jabber.org
Dec 1 '06 #5

Noah Roberts wrote in message ..
>
ya*******@ausi .com wrote:
>Hi,

I have been programming c, c++ on windows.

What is the difference in programming on Unix.. are there different
syntaxes, functions on Unix.
what are mandatory different steps on unix. Whst is the difference
between programming c++ on windows and unix. Which compiler one has to
use on unix.

The gnu compiler collection is the usual choice on most unix systems.
There are some others but that is the major one used and comes
installed most of the time.
Wow, they ported GNU to Unix? That's real irony since the 'NU' in GNU stands
for 'Not Unix'!

--
Bob R
POVrookie
Dec 1 '06 #6

BobR wrote:
Noah Roberts wrote in message ..

ya*******@ausi. com wrote:
Hi,

I have been programming c, c++ on windows.

What is the difference in programming on Unix.. are there different
syntaxes, functions on Unix.
what are mandatory different steps on unix. Whst is the difference
between programming c++ on windows and unix. Which compiler one has to
use on unix.
The gnu compiler collection is the usual choice on most unix systems.
There are some others but that is the major one used and comes
installed most of the time.

Wow, they ported GNU to Unix? That's real irony since the 'NU' in GNU stands
for 'Not Unix'!
Heh. Yup, I use g++ on Solaris. Well, technically the compiler is not
Unix, it just runs on Unix...

Dec 1 '06 #7

BobR wrote:
Wow, they ported GNU to Unix? That's real irony since the 'NU' in GNU stands
for 'Not Unix'!
Yeah, I can see how that name might confuse you. Thing is that it's a
historical anamoly. GNU, the orginization, named themselves after GNU,
the invisible operating system. They made tools for this operating
system before ever having a kernel. The kernel never really
materialized... there is Hurd, years and years later, in an alpha stage
or something but I doubt highly that it will ever be viable.

So really, GNU was *developed* on Unix as there was no kernel to
develop for. Unix was the only thing they could use until Linux came
along....which really pisses off RMS because now nobody's waiting
around for his kernel since we already have one.

So GNU, the orginization, is named after GNU, the operating system that
doesn't exist. They keep claiming that Linux is GNU...but not
GNU...it's all too confusing. It's easier to ignore the whole "not
unix" thing and think of GNU as a Unix tool development organization
that likes to start all their product names with 'g'.

Dec 1 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
4132
by: Matthew | last post by:
How would I go about creating a simple "hello world" program that will run in Unix. I am using MS Visual C++.
5
2726
by: jrefactors | last post by:
when people say unix programmer, does it mean they write programs in unix environment,and those programs are run in unix platform? it is not necessary they are using unix function calls? I heard most of the time unix programmers are C and C++ programmers. please advise. thanks!!
22
3077
by: Ryan M | last post by:
I've been programming for a while, but most of my experience is on unix. How do C compilers work on operating systems that weren't written in C? And that have no libc? Compiling C on unix seems so easy. Everything in the code either goes right to machine code, or links to a C library (often libc) or links to the kernel. Are there libc equivalents on non-unix OSes? -- Using M2, Opera's revolutionary e-mail client:...
5
3546
by: markus | last post by:
Hi, I have a question that deals with the standard c library VS (Unix) system calls. The question is: which header files (and functions) are part of the C library and which header files (and function calls) are part of the (Unix) system calls. The cause of my confusion is that for example stdio.h is considered
18
5651
by: Sharon | last post by:
is microsoft going to develop .Net for Unix? or at lest CLR for Unix? 10x
15
5891
by: Alpha | last post by:
I was told that Unix API can only be called using C++, ATL and MFC. However, I was also told that C# can do that through Pinvoke to a DLL that interfaces with the Unix API. Can someone direct me to some good article to read up on this? Basically, I'm looking a possible project that has a Window client but needs to get information from Unix side sometime by calling some API in Unix. Many thanks in advance, Alpha
191
7928
by: Xah Lee | last post by:
Software Needs Philosophers by Steve Yegge, 2006-04-15. Software needs philosophers. This thought has been nagging at me for a year now, and recently it's been growing like a tumor. One that plenty of folks on the 'net would love to see kill me.
22
3666
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.
1
1815
by: Marcin Wiszowaty | last post by:
Hello, I work at a company that has 2 development enviroments. One Unix which i dont know anything about and the othe vs.net 03 with MSSQL server 2000 for db. How can i cause applications (scripts) to get run in unix while using preferably vb.net or c# applications run in windows. So far all the unix aplications are started manualy through the command window. Files are sent using FTP. We have XceedFTP client to send files to unix from...
0
9531
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
9345
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,...
0
9775
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...
1
7332
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6609
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
5229
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3881
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
3
3456
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2752
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.