: Re: [Mingw-w64-public] #ifndef or #ifdef, that is the dilemma
Op 6-sep.-2013 21:51 schreef "Incongruous" het
volgende:
>
> Yes, I am using g++.
> __cplusplus is defined in stddef and I have specifically #include(ed) that
> file.
> I hope that this new info will clear
help.
From: Kai Tietz
Sent: Friday, September 06, 2013 1:41 AM
To: mingw-w64-public@lists.sourceforge.net
Subject: Re: [Mingw-w64-public] #ifndef or #ifdef, that is the dilemma
As you check for "__cpluplus" - which is obviously not defined by compiler by
default - I would assume you a
ompile your code.
This will help everyone get faster and better solutions to people's
problems ;-)
Cheers,
Ruben
>
>
> From: Kai Tietz
> Sent: Friday, September 06, 2013 1:41 AM
> To: mingw-w64-public@lists.sourceforge.net
> Subject: Re: [Mingw-w64-public] #ifndef or #ifdef
y, September 06, 2013 1:50 AM
To: mingw-w64-public
Subject: Re: [Mingw-w64-public] #ifndef or #ifdef, that is the dilemma
> Am 05.09.2013 23:10 schrieb "Incongruous" :
>>
>> #ifndef __cpluplus
>>std::cout << "error\n A C++ compiler is required!" &
> Am 05.09.2013 23:10 schrieb "Incongruous" :
>>
>> #ifndef __cpluplus
>>std::cout << "error\n A C++ compiler is required!" << std::endl;
>>return -1;
>> #endif
>> The above snip says, if __cplusplus has not been defined print “bla bla”
>> and return –1. Which means that if I am using __cp
As you check for "__cpluplus" - which is obviously not defined by compiler
by default - I would assume you are using c++ :
;-)
Am 05.09.2013 23:10 schrieb "Incongruous" :
> #ifndef __cpluplus
>std::cout << "error\n A C++ compiler is required!" << std::endl;
>return -1;
> #endif
> The ab
#ifndef __cpluplus
std::cout << "error\n A C++ compiler is required!" << std::endl;
return -1;
#endif
The above snip says, if __cplusplus has not been defined print “bla bla” and
return –1. Which means that if I am using __cplusplus it should NOT print
anthing, right? So, am I using the C