'uint32_t' does not name a type

后端 未结 9 1628
旧时难觅i
旧时难觅i 2021-01-30 12:13

I\'m trying to compile a C++ software package that was written in 2007 and I\'m getting this error:

error: ‘uint32_t’ does not name a type

This is h

9条回答
  •  面向向阳花
    2021-01-30 13:09

    Add the following in the base.mk file. The following 3rd line is important -include $(TOP)/defs.mk

    CFLAGS=$(DEBUG) -Wall -W -Wwrite-strings 
    CFLAGS_C=-Wmissing-prototypes
    CFLAGS_CXX=-std=c++0x
    LDFLAGS=
    LIBS=
    

    to avoid the #error This file requires compiler and library support for the upcoming ISO C++ standard, C++0x. This support is currently experimental, and must be enabled with the -std=c++0x or -std=gnu++0x compiler options

提交回复
热议问题