473,698 Members | 2,522 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C++ features in LINUX?

Hey,
I have developed a project on C++, but under windows. But we have got
to run it in an open source (LINUX). Can anyone tell me what features
of C++ are not supported in Linux ? Like i have heard Linux doesn't
support esception handling and destructors. Similarly what about
strings and other C++ features (say class, inheritance etc.) ?
Thank you
Jul 12 '08 #1
8 1682
an********@gmai l.com wrote:
Hey,
I have developed a project on C++, but under windows. But we have got
to run it in an open source (LINUX). Can anyone tell me what features
of C++ are not supported in Linux ? Like i have heard Linux doesn't
support esception handling and destructors. Similarly what about
strings and other C++ features (say class, inheritance etc.) ?
What utter nonsense.

The OS has nothing to do with C++ language support.

--
Ian Collins.
Jul 12 '08 #2
an********@gmai l.com wrote:
Hey,
I have developed a project on C++, but under windows. But we have got
to run it in an open source (LINUX). Can anyone tell me what features
of C++ are not supported in Linux ? Like i have heard Linux doesn't
support esception handling and destructors. Similarly what about
strings and other C++ features (say class, inheritance etc.) ?
If anything, people insist on using VC6 under Windows and calling it "C++".

C++ is C++. The default compiler on Linux is the Gnu g++ compiler,
which is standard compliant (with the exception of "export", but
almost nobody except the people using the EDG front end supports that).

Jul 12 '08 #3
On Jul 12, 5:28 am, anchitg...@gmai l.com wrote:
I have developed a project on C++, but under windows. But we
have got to run it in an open source (LINUX). Can anyone tell
me what features of C++ are not supported in Linux ? Like i
have heard Linux doesn't support esception handling and
destructors. Similarly what about strings and other C++
features (say class, inheritance etc.) ?
Linux (like Windows) doesn't support any "language", per se
(although it has a net preference for C). C++, like just about
every other language I know, is defined independently of the OS.
Whether a particular C++ feature is supported depends on the
compiler, not the OS, and off hand, the latest versions of VC++
and g++ seem more or less equal here, with probably a slight
edge for g++.

The real problem today in porting applications is that there are
very few applications written to use just the language. C++
makes it very easy to call a C API, and both Linux and Windows
use a C API, which means that in both languages, it is very easy
to use native OS features. And the language doesn't support a
number of very useful functionalities , like threads, windowing,
sockets, etc.; which means that programs using these do have
some system dependencies at places.

--
James Kanze (GABI Software) email:ja******* **@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientier ter Datenverarbeitu ng
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
Jul 12 '08 #4
Use Cygwin to test
Jul 12 '08 #5
an********@gmai l.com wrote:
Like i have heard Linux doesn't
support esception handling and destructors.
Thanks for the ROTFL moment. It really made my day.
Jul 12 '08 #6
Ian Collins wrote:
an********@gmai l.com wrote:
>Hey,
I have developed a project on C++, but under windows. But we have got
to run it in an open source (LINUX). Can anyone tell me what features
of C++ are not supported in Linux ? Like i have heard Linux doesn't
support esception handling and destructors. Similarly what about
strings and other C++ features (say class, inheritance etc.) ?

What utter nonsense.
Actually, that's not true, if by Linux you mean what Linux actually is (an
operation system kernel, and _only_ the kernel).
If you want to do Linux kernel programming, like writing a device driver,
some C++ features like exceptions might indeed not work correctly, since
C++ is not supported for kernel programming.

Jul 12 '08 #7
Juha Nieminen wrote:
an********@gmai l.com wrote:
>Like i have heard Linux doesn't
support esception handling and destructors.

Thanks for the ROTFL moment. It really made my day.
I wonder how much of such nonsense is circulating and influencing
decision making...
Jul 14 '08 #8
On Jul 14, 6:53*pm, Matthias Buelow <m...@incubus.d ewrote:
Juha Nieminen wrote:
anchitg...@gmai l.com wrote:
Like i have heard Linux doesn't
support esception handling and destructors.
* Thanks for the ROTFL moment. It really made my day.

I wonder how much of such nonsense is circulating and influencing
decision making...
As far as i know there is no Linux C++ standard or Windows C++
Standard. But C++ as language has a standard which not dependent to OS
i think. No matter what Operating System you use C++ has its own
standard, which means language features remain same no matter what
operating system you use.

I believe the problem that you face is related to the working of
functionality of your library.

Correct me if anything is wrong in what i stated!
Jul 14 '08 #9

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

Similar topics

5
1857
by: LRW | last post by:
I've been using PHP for a few years now, have used ASP in the past, and PHP (IMO) is far superior! However, last year I had the opportunity to do some work in ASP.Net...and wow! Really liking what .Net can do. Anyway, I've seen a lot of teasing statements about new OO features in PHP5, but I can't really find any comprehensive site detailing these new OO features, what they are, what they do, how to use them. Any suggestions? I did a...
0
1099
by: William Park | last post by:
I wrote a patch to Bash shell, incorporating some of Awk/Python features that I use a lot: http://home.eol.ca/~parkw/bash.diff http://home.eol.ca/~parkw/index.html I would like to get feedback as to what Python features you would like to see in Bash. -- William Park, Open Geometry Consulting, <opengeometry@yahoo.ca>
8
1507
by: waqer | last post by:
To which degree python language support features of following langauage categories? Imperative, Object Oriented, Scriptig or Functional.
18
1770
by: Michael B Allen | last post by:
Is it considered a bad idea to use a C99 only feature? It has been almost 6 years right? Specifically I'm interested in variadic macros. All of my code is C89 (or less) except for my debugging macros. Thanks, Mike
6
2444
by: aron t | last post by:
Hi, I am good php programmer and want to learn asp.net. Can someone tell me what are the best and the worst features of ASP.NET? thanks
148
5166
by: BillJosephson | last post by:
Want to do OOP. Does c++ have all the abilities of java, or is it some subset? Thanks...
4
1716
by: Michael Reichenbach | last post by:
I am not asking for the best ide because I know there can no best one. Some prefer it lightweight, some a simple text editor... But I prefer as much helpful features as possible. Before I changed to C++ i did write in other languages like C# and used microsoft visual studio 2005. Vs05 for C++ projects lacks a lot features compared to C# projects with vs05.
2
14240
by: Vinod Sadanandan | last post by:
All, Below listed are the new features in Oracle 11g ,please join me in this discussion to generate a testcase and analyze each of the listed features . Precompilers: Additional Array INSERT and SELECT Syntax Support by Pro*C/C++ and Pro*COBOL Precompilers: Dynamic SQL Statement Caching in Pro*C/C++ and Pro*COBOL Precompilers: Fix Execution Plan in Pro*C/C++ and Pro*COBOL Precompilers: Flexible B Area Length...
1
3136
by: barunva | last post by:
Hi, We would like to know whether the Clustering and Load balancing features of Apache tomcat server are working across the Clusters or not. If it is working, is it possible to have the following setup across the Cluster, 1. Assume there is no NFS filesystem across cluster
0
8676
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, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8608
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
9164
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9029
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8870
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
7734
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 project—planning, coding, testing, and deployment—without 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...
1
6524
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
4370
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
3051
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

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.