Re: [Mingw-w64-public] #ifndef or #ifdef, that is the dilemma

2013-09-06 Thread Incongruous
: 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

Re: [Mingw-w64-public] #ifndef or #ifdef, that is the dilemma

2013-09-06 Thread Incongruous
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

Re: [Mingw-w64-public] #ifndef or #ifdef, that is the dilemma

2013-09-06 Thread Ruben Van Boxem
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

Re: [Mingw-w64-public] #ifndef or #ifdef, that is the dilemma

2013-09-06 Thread Incongruous
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!" &

Re: [Mingw-w64-public] #ifndef or #ifdef, that is the dilemma

2013-09-05 Thread Ozkan Sezer
> 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

Re: [Mingw-w64-public] #ifndef or #ifdef, that is the dilemma

2013-09-05 Thread Kai Tietz
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

[Mingw-w64-public] #ifndef or #ifdef, that is the dilemma

2013-09-05 Thread 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 __cplusplus it should NOT print anthing, right? So, am I using the C