C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

compiling iso c++ code in Visual Studio environment

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++)
View previous topic :: View next topic  
Author Message
RS
Guest





PostPosted: Sat Aug 26, 2006 7:36 am    Post subject: compiling iso c++ code in Visual Studio environment Reply with quote



Hi all,

My code compiles well with gcc on linux and OS X, but now I have to run
it at work, and my only choice is Visual Studio .Net 2003 environment on
windows, which I had never used before. I've noticed several obstacles
with the compilation. For example this environment insists that we put
all headers under a stdafx header, which I managed to find a way to get
around. But there are other issues. For example, Visual Studio claims
that there is no such thing as std::numeric_limits. Also, it gives a
bizarre error that there is something wrong with the stdio headers in my
files-- except that I don't use stdio, I use iostream.

I don't need all the fancy windows-specific C++ routines, but I need to
use Visual Studio as a compiler. I was wondering if anyone experienced
with it can give me a hint or two about compiling portable code with it
with minimum overhead. For example, is there an option to check to let
it know we are compiling iso code? Also, are there any online tutorials
or guides for people who need to migrate from gcc to visual Studio 2003?
If not, any good books that don't dwell on C++, but just teaches the
..Net 2003 environment?

Thanks,
RS
Back to top
Ian Collins
Guest





PostPosted: Sat Aug 26, 2006 8:20 am    Post subject: Re: compiling iso c++ code in Visual Studio environment Reply with quote



RS wrote:
Quote:
Hi all,

My code compiles well with gcc on linux and OS X, but now I have to run
it at work, and my only choice is Visual Studio .Net 2003 environment on
windows, which I had never used before. I've noticed several obstacles
with the compilation. For example this environment insists that we put
all headers under a stdafx header, which I managed to find a way to get
around. But there are other issues. For example, Visual Studio claims
that there is no such thing as std::numeric_limits. Also, it gives a
bizarre error that there is something wrong with the stdio headers in my
files-- except that I don't use stdio, I use iostream.

You'd do better by posting to a VS group, this one is for the C++

language, not specific tools.

--
Ian Collins.
Back to top
Jim Langston
Guest





PostPosted: Sat Aug 26, 2006 8:40 am    Post subject: Re: compiling iso c++ code in Visual Studio environment Reply with quote



"RS" <rsina_no.ssppaamm (AT) comcast (DOT) net> wrote in message
news:zsSdnUQY3LYkLnLZnZ2dnUVZ_vednZ2d (AT) comcast (DOT) com...
Quote:
Hi all,

My code compiles well with gcc on linux and OS X, but now I have to run it
at work, and my only choice is Visual Studio .Net 2003 environment on
windows, which I had never used before. I've noticed several obstacles
with the compilation. For example this environment insists that we put all
headers under a stdafx header, which I managed to find a way to get
around. But there are other issues. For example, Visual Studio claims that
there is no such thing as std::numeric_limits. Also, it gives a bizarre
error that there is something wrong with the stdio headers in my files--
except that I don't use stdio, I use iostream.

I don't need all the fancy windows-specific C++ routines, but I need to
use Visual Studio as a compiler. I was wondering if anyone experienced
with it can give me a hint or two about compiling portable code with it
with minimum overhead. For example, is there an option to check to let it
know we are compiling iso code? Also, are there any online tutorials or
guides for people who need to migrate from gcc to visual Studio 2003? If
not, any good books that don't dwell on C++, but just teaches the .Net
2003 environment?

Thanks,
RS

Best asked in microsoft.public.vc.language or such, but...
Project -> xxx Properties -> Configuration Properties -> C/C++ ->
Precompiled Headers -> Not Using Precompiled Headers
Project -> xxx Properties -> Configuratino Properties -> C/C++ ->
Language -> Disable Language Extentions -> yes
Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.