Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

icc: __INT_MAX__ undefined for 19.1.2

Diehl__Martin
Novice
821 Views

I'm not sure whether this is on purpose, but

icc version 19.1.1.217 (gcc version 10.0.1 compatibility) has __INT_MAX__ defined:

icc -no-gcc -gcc-sys -dM -E - </dev/null | grep __INT_M

#define __INT_MAX__ 2147483647

 

icc version 19.1.2.254 (gcc version 10.0.1 compatibility) not

icc -no-gcc -gcc-sys -dM -E - </dev/null | grep __INT_M

 

both compilers are installed on Ubuntu 20.04

 

 

0 Kudos
3 Replies
PrasanthD_intel
Moderator
809 Views

Hi Martin,


Thanks for reaching out to us.

You can use 

icc -gcc-sys -dM -E - </dev/null | grep __INT_M 

to get the __INT_MAX__ value.


Let us know if you require anything else.


Regards

Prasanth


0 Kudos
PrasanthD_intel
Moderator
780 Views

Hi Martin,


We haven't heard back from you.

If you have any more questions regarding the query, please reach out to us.


Regards

Prasanth


0 Kudos
PrasanthD_intel
Moderator
747 Views

Hi Martin,


We are closing this thread considering your issue have been resolved.

Please raise a new thread for any further questions.

Any further interaction in this thread will be considered community only


Regards

Prasanth


0 Kudos
Reply