How to make MS Visual C ++ use LP64 instead of LLP64

I would like to know if it is possible to use VC ++ LP64instead LLP64, I know that I can use another compiler, such as GCC or Intel C ++, but I would like to use VC ++ for various reasons.

There is no need for compatibility with Microsoft headers, etc., and I already use LIBC as my runtime library.

+5
source share
2 answers

Sometimes “you cannot” is also the answer. Because it is not possible (presumably for backward compatibility ).

Use portable types ( #include <cstdint>) instead :

  • int8_t - 8-bit integer
  • int16_t - 16-bit integer
  • int32_t - 32-
  • int64_t - 64-

P.S. Cygwin, LP64 Windows.

+2

\#define long long long

/Dname[= | # [{string | number}] ]

/Dlong="long long"

-2

All Articles