dbTalk Databases Forums  

Compilers other than GCC and MSVC++

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss Compilers other than GCC and MSVC++ in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Spinka, Kristofer
 
Posts: n/a

Default Compilers other than GCC and MSVC++ - 11-17-2005 , 07:26 PM






The two include files:

lib/convert.h
lib/defs.h

contain defines that only seem to support GCC and MSVC++.
I think most Unix compilers/platform headers will be able
to interpret the GCC version of the defines in these
headers.

I would like to recommend that the __GNUC__ become the
default in an "#else" block instead of a throwing a
compiler error.

/kristofer

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw


Reply With Quote
  #2  
Old   
Chris Frey
 
Posts: n/a

Default Re: Compilers other than GCC and MSVC++ - 11-20-2005 , 08:17 PM






On Thu, Nov 17, 2005 at 05:43:11PM -0500, Spinka, Kristofer wrote:
Quote:
I would like to recommend that the __GNUC__ become the
default in an "#else" block instead of a throwing a
compiler error.
I suppose the compile would fail anyway if a compiler didn't have these
strtoll-style functions. I'd support converting the error to a warning.

How many compilers do you have access to? Could you send a list of their
defines, so we could specifically check for them?

Thanks,
- Chris


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #3  
Old   
Warren Young
 
Posts: n/a

Default Re: Compilers other than GCC and MSVC++ - 11-23-2005 , 02:56 PM



Chris Frey wrote:
Quote:
On Thu, Nov 17, 2005 at 05:43:11PM -0500, Spinka, Kristofer wrote:

I would like to recommend that the __GNUC__ become the
default in an "#else" block instead of a throwing a
compiler error.

I suppose the compile would fail anyway if a compiler didn't have these
strtoll-style functions. I'd support converting the error to a warning.
I've thought this over, and for me it comes down to a question of
standards. Both strtoll() and the 'long long' types are part of C99, so
I don't mind moving these to the #else clause of the ifdefs in question.
It would be different if these things were truly compiler- or platform-
dependent.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.