BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

'User' Compiler output

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Command Line Tools)
View previous topic :: View next topic  
Author Message
Mar
Guest





PostPosted: Fri Jun 04, 2004 2:18 pm    Post subject: 'User' Compiler output Reply with quote



Imagine I have this

#if defined(_VIS_STD)
# include <iostream>
#else
# include <iostream.h>
#endif

Can I add something in the code that would tell me: "you are now including
this file and not the other one"?

Like:

#if defined(_VIS_STD)
# include <iostream>
<CL output: You have included iostream>
#else
# include <iostream.h>
<CL output: You have included iostream.h>
#endif

Any other way how I can check this?


Back to top
Fredrik Eriksson
Guest





PostPosted: Fri Jun 04, 2004 3:20 pm    Post subject: Re: 'User' Compiler output Reply with quote



On Fri, 4 Jun 2004 16:18:47 +0200, Mar
<NameYearOfBirthHeightWeight (AT) hotmail (DOT) com> wrote:
Quote:
Imagine I have this

#if defined(_VIS_STD)
# include <iostream
#else
# include #endif

Can I add something in the code that would tell me: "you are now
including
this file and not the other one"?

Like:

#if defined(_VIS_STD)
# include CL output: You have included iostream
#else
# include CL output: You have included iostream.h
#endif

Any other way how I can check this?


#if defined(_VIS_STD)
# include #pragma message You have included iostream
#else
# include <iostream.h>
#pragma message You have included iostream.h
#endif


If you want compatibility with MS compilers, use the form
#pragma message( "You have included iostream" )
instead.



--
FE

Back to top
Mar
Guest





PostPosted: Fri Jun 04, 2004 3:23 pm    Post subject: Re: 'User' Compiler output Reply with quote




"Fredrik Eriksson" <noone (AT) nowhere (DOT) com> wrote


Quote:
#if defined(_VIS_STD)
# include #pragma message You have included iostream
#else
# include #pragma message You have included iostream.h
#endif


If you want compatibility with MS compilers, use the form
#pragma message( "You have included iostream" )
instead.

Hey, that cool man!

Thanks!



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Command Line Tools) 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.