RDTSC on VisualStudio 2010 Express - C++ does not support default-int

后端 未结 3 838
不知归路
不知归路 2020-12-21 15:37

I tried to test rdtsc on VisualStudio 2010. Heres my code:

#include 
#include 
#include 
using          


        
3条回答
  •  难免孤独
    2020-12-21 16:07

    To have this working you have to include cstdint :

    #include  // Or 
    

    cstdint is the C++-style version of the C-style header stdint.h. Then it is better in your case to use the first one even if both are working in C++.

    It is said here that those headers are shipped with visual studio since the 2010 version.

提交回复
热议问题