Re: Need Standard C++ Compiler for M$ Windows

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Arthur Pemberton <pemboa <at> gmail.com> writes:
> and basically, if it
> compiles in Visual Studio, it will compile in g++.

Not really... There are some non-standard constructs which M$VC++ accepts and 
g++ (at least current versions of it) don't, for example lvalue casts. 
Moreover, for both compilers, the older the version, the less compliant to the 
standard they are. But I believe, even if you compare current version against 
current version, g++ is more compliant, meaning it will accept some constructs 
compliant to the standard which M$VC++ rejects and reject some non-standard 
constructs which M$VC++ accepts.

Also beware that g++ puts compliance above backwards-compatibility. Newer 
versions are known to reject constructs which have worked before (or which work 
in M$VC++) if they're not allowed by the standard. Sometimes -fpermissive helps 
(you'll still get a warning, but at least the code will compile), sometimes it 
doesn't.

        Kevin Kofler

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux