2014-09-11 8 views
8

È possibile eseguire l'aggancio su Windows?Eseguire aggancio su Windows

mi aggrappo compilato da fonti (build instructions) con Visual C++ 12.0, ma quando provo a fare funzionare Ho il seguente errore di runtime:

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 

Ho cercato su google prossimo link:

BTW, ho Clang (Clang versione 3.6.0 (tronco)) e tutto funziona bene.

Quando eseguo con cling -x c, ho ancora lo stesso errore, ma senza asserzione (-x mezzi trattare i file di input successive ad avere tipo < lingua>):

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

Da questo 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

nessuno sa di aggrapparsi? :( – grisha

+1

Hai mai visto qualcosa? –

+0

@ PhoenixX_2, no, dimmi, per favore, se troverai qualcosa – grisha

risposta

4

Da questo 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

Ora che Clang sta lavorando a Windows, l'aggancio dovrebbe essere perfetto – danbo