error: ‘int64_t’ does not name a type

4547 단어
CodeBlock에서 컴파일링 공정에 문제가 없었지만 ubuntu에 자기가 쓴 Makefile make를 넣었을 때 오류를 보고했습니다.
error: ‘int64_t’ does not name a type
 
#                                                                             
   2 # Makefile                                                                    
   3 #                                                                             
   4 #                                                                             
   5                                                                               
   6 #define                                                                       
   7 CC=gcc                                                                        
   8 CXX=g++                                                                       
   9 TARGET=TestPthreadDemo                                                        
  10 #CXXFLAGS = -std=c++11                                                        
  11 CXXFLAGS =                                                                    
  12                                                                               
  13 #files                                                                        
  14 objects = TestPthreadDemo.o MultilPthread.o                                   
  15 headers = MultilPthread.h                                                     
  16                                                                               
  17 #rules                                                                        
  18 $(TARGET): $(objects)                                                         
  19         $(CXX)  $(CXXFLAGS) $^ -o $@                                          
  20                                                                               
  21 %.o: %.cpp $(headers)                                                         
  22         $(CXX) -c $(CXXFLAGS) $< -o $@                                        
  23                                                                               
  24 .PHONY : clean                                                                
  25 clean :                                                                       
  26         rm $(objects)                                                         
  27                                                                               
  28 distclean:                                                                    
  29         rm $(TARGET) 

 
헤더 파일 추가 필요#include
참조:https://stackoverflow.com/questions/11069108/uint32-t-does-not-name-a-type
 
다음으로 전송:https://www.cnblogs.com/tid-think/p/10729558.html

좋은 웹페이지 즐겨찾기