2014-09-11 14 views
8

Có thể chạy bám trên Windows không?Chạy bám trên Windows

Tôi bám biên soạn thành công từ các nguồn (build instructions) với Visual C++ 12.0, nhưng khi tôi cố gắng chạy Tôi có lỗi runtime sau:

F:\Dev\open-source\Cling\src\build\Debug\bin>cling.exe 
ERROR in cling::CIFactory::createCI(): 
    resource directory F:\Dev\open-source\Cling\src\build\Debug\lib\clang\3.6.0 not found! 
Assertion failed: !CurTokenLexer && "Cannot #include a file inside a macro!", file ..\..\..\..\..\tools\clang\lib\Lex\PPLexerChange.cpp, line 73 

Tôi googled liên kết tiếp theo:

BTW, tôi có Clang (Clang phiên bản 3.6.0 (thân cây)) và mọi thứ hoạt động tốt.

Khi tôi chạy với cling -x c, tôi vẫn có những lỗi tương tự, nhưng không khẳng định (-x phương tiện chữa tập tin đầu vào tiếp theo là có loại < ngôn ngữ>):

F:\Dev\open-source\Cling\src\build\Debug\bin>cling -x c 
ERROR in cling::CIFactory::createCI(): 
    resource directory F:\Dev\open-source\Cling\src\build\Debug\lib\clang\3.6.0 not found! 

****************** CLING ****************** 
* Type C++ code and press enter to run it * 
*    Type .q to exit    * 
******************************************* 
[cling]$ #include <stdio.h> 
[cling]$ printf("%s", "test"); 
test 
[cling]$ 

Từ link này:

The limitation of cling on Windows comes from the fact that clang doesn't support fully windows mangling scheme, i.e it is not binary compatible. For example, one cannot call a function compiled with other than clang/gcc compiler. - There is a lot of progress in that direction recently on the clang side. We should investigate why cling chalks up. I.e is everything set up correctly in the CIFactory in the case where the OS is windows. - Since C doesn't have mangling cling in C mode must be working on Windows (i.e cling -x c)

... This is an issue which we intend to work on soon and patches are very welcome.

+0

không ai biết về bám víu? :( – grisha

+1

Bao giờ tìm ra bất cứ điều gì không? –

+0

@ PhoenixX_2, nope. Hãy nói cho tôi biết, xin vui lòng, nếu u sẽ tìm thấy một cái gì đó – grisha

Trả lời

4

Từ này link:

The limitation of cling on Windows comes from the fact that clang doesn't support fully windows mangling scheme, i.e it is not binary compatible. For example, one cannot call a function compiled with other than clang/gcc compiler.

  • There is a lot of progress in that direction recently on the clang side. We should investigate why cling chalks up. I.e is everything set up correctly in the CIFactory in the case where the OS is windows.

  • Since C doesn't have mangling cling in C mode must be working on Windows (i.e cling -x c)

... This is an issue which we intend to work on soon and patches are very welcome.

+0

Bây giờ Clang đang làm việc trên cửa sổ, bám víu nên được tốt ngay bây giờ – danbo

Các vấn đề liên quan