diff --git a/paddle/utils/Version.cpp b/paddle/utils/Version.cpp index ed4ae6115f9775416161d48ad2f9e98d598f3cde..84060a1005e2d3b6011d7187bcfc53d322c81a88 100644 --- a/paddle/utils/Version.cpp +++ b/paddle/utils/Version.cpp @@ -37,7 +37,7 @@ void printVersion(std::ostream& os) { #define xstr(s) str(s) #define str(s) #s - os << "paddle version: " << str(PADDLE_VERSION) << std::endl + os << "paddle version: " << xstr(PADDLE_VERSION) << std::endl << std::boolalpha << "\t" << "withGpu: " << version::isWithGpu() << std::endl << "\t"