2014-09-11 8 views
8

Czy można uruchomić system Windows?Run cling on Windows

pomyślnie skompilowany przylgnąć od źródeł (build instructions) z Visual C++ 12,0, ale gdy próbuję uruchomić Mam następujący błąd wykonania:

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 

google następnego linku:

BTW, mam Clang (wersja Clang 3.6.0 (bagażnik)) i wszystko działa dobrze.

Kiedy biegnę z cling -x c, nadal mam ten sam błąd, ale bez twierdzenia (-x środki traktować kolejne pliki wejściowe jako mający typ < język>):

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]$ 

Od tego 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

nikt nie wie o przylgnięciu? :( – grisha

+1

Czy kiedykolwiek coś zrozumiałeś? –

+0

@ PhoenixX_2, nie. Powiedz mi, proszę, jeśli coś znajdziesz – grisha

Odpowiedz

4

Od tego 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

Teraz, gdy Clang pracuje nad oknami, przyleganie powinno być już w porządku – danbo