Aspectc++试用

aspectC++试用

参考https://www.aspectc.org/doc/ac-compilerman.xhtml#magicparlabel-106

G:\_codes\ac-bin-win-x86-64bit-2.2\aspectc++\examples\helloworld>..\..\ac++ -I . -I "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include" -p . -d ..\t 2>1.txt

报了好多错误!
In file included from <built-in>:6:
In file included from <command line>:2:
In file included from G:/_codes/ac-bin-win-x86-64bit-2.2/aspectc++/examples/helloworld/world.ah:4:
In file included from C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\iostream:11:
In file included from C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\istream:11:
In file included from C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\ostream:11:
In file included from C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\ios:11:
In file included from C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\xlocnum:12:
In file included from C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\cmath:9:
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\yvals.h:12:10: fatal error: 'crtdbg.h' file not found
#include <crtdbg.h>
         ^
In file included from main.cc:1:
In file included from ./hello.h:4:
In file included from C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\iostream:9:
In file included from C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\yvals_core.h:253:
In file included from C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\vcruntime.h:58:
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\vadefs.h:133:18: error: expected identifier or '{'
            enum : bool { __the_value = false };
                 ^
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\vadefs.h:133:13: warning: declaration does not declare anything
            enum : bool { __the_value = false };
            ^
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\vadefs.h:139:18: error: expected identifier or '{'
            enum : bool { __the_value = true };
                 ^
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\vadefs.h:139:13: warning: declaration does not declare anything
            enum : bool { __the_value = true };
            ^
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\vadefs.h:143:47: warning: rvalue references are a C++11 extension
        struct __vcrt_va_list_is_reference<_Ty&&>
                                              ^
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\vadefs.h:145:18: error: expected identifier or '{'
            enum : bool { __the_value = true };
                 ^
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\vadefs.h:145:13: warning: declaration does not declare anything
            enum : bool { __the_value = true };
            ^
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\vadefs.h:151:27: error: expected parameter declarator
            static_assert(!__vcrt_va_list_is_reference<_Ty>::__the_value,
                          ^
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\vadefs.h:151:27: error: expected ')'
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\vadefs.h:151:26: note: to match this '('
            static_assert(!__vcrt_va_list_is_reference<_Ty>::__the_value,
                         ^
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\vadefs.h:151:13: error: C++ requires a type specifier for all declarations
            static_assert(!__vcrt_va_list_is_reference<_Ty>::__the_value,
            ^
In file included from main.cc:1:
In file included from ./hello.h:4:
In file included from C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\iostream:9:
In file included from C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\yvals_core.h:253:
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\vcruntime.h:93:1: error: C++ requires a type specifier for all declarations
_CRT_BEGIN_C_HEADER
^
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\vcruntime.h:66:9: note: expanded from macro '_CRT_BEGIN_C_HEADER'
        __pragma(pack(push, _CRT_PACKING)) \
        ^
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\vcruntime.h:93:1: error: use of undeclared identifier 'push'
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\vcruntime.h:66:23: note: expanded from macro '_CRT_BEGIN_C_HEADER'
        __pragma(pack(push, _CRT_PACKING)) \
                      ^
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\vcruntime.h:93:1: error: expected ';' after top level declarator
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\vcruntime.h:67:9: note: expanded from macro '_CRT_BEGIN_C_HEADER'
        extern "C" {
        ^
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\vcruntime.h:225:22: error: 'short wchar_t' is invalid
    typedef unsigned short wchar_t;
                     ^
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\vcruntime.h:225:5: warning: typedef requires a name
    typedef unsigned short wchar_t;
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\vcruntime.h:340:9: error: unknown type name '__declspec'
        __declspec(noreturn) void __cdecl __report_gsfailure(_In_ uintptr_t _StackCookie);
        ^
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\vcruntime.h:340:29: error: expected ';' after top level declarator
        __declspec(noreturn) void __cdecl __report_gsfailure(_In_ uintptr_t _StackCookie);
                            ^
                            ;
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\vcruntime.h:352:1: error: C++ requires a type specifier for all declarations
_CRT_END_C_HEADER
^
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\vcruntime.h:71:9: note: expanded from macro '_CRT_END_C_HEADER'
        __pragma(pack(pop))
        ^
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\vcruntime.h:352:1: error: use of undeclared identifier 'pop'
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\vcruntime.h:71:23: note: expanded from macro '_CRT_END_C_HEADER'
        __pragma(pack(pop))
                      ^
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\vcruntime.h:352:18: error: expected ';' after top level declarator
_CRT_END_C_HEADER
                 ^
                 ;
In file included from main.cc:1:
In file included from ./hello.h:4:
In file included from C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\iostream:11:
In file included from C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\istream:11:
In file included from C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\ostream:11:
In file included from C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\ios:11:
In file included from C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\xlocnum:12:
In file included from C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\cmath:9:
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/include\yvals.h:12:10: fatal error: 'crtdbg.h' file not found
#include <crtdbg.h>
         ^

总结:好像对现在的msvc支持非常差,几乎不可用

Powered by Jekyll and Theme by solid

本站总访问量