If its not too much work I would like to have a build, it would be interesting to be able to test out code this way. It would be interesting to play with! :)
please remember. I had to hack the source to get it to compile.
Expect hiccups!
The ValuePrinter of cling will not work properly.
There could be problems with destructors.
perhaps more ...
Anyway, Enjoy cling :)
P.S. please tell me if you are haveing problems. Maybe I fix a few of them.
Sorry for my late reply. I have been sick lately and havent had the time to fully investigate the issue. When I try to run cling I get the following error:
C:\Users\Awais\Downloads\cling_x86_MSVC_12>cling
ERROR in cling::CIFactory::createCI():
resource directory C:\Users\Awais\Downloads\lib\clang\3.6.0 not found!
input_line_3:1:10: fatal error: 'cling/Interpreter/RuntimeUniverse.h' file not found
#include "cling/Interpreter/RuntimeUniverse.h"
^
Do I have to download clang or something ?
This file should be in the zip package.
did you extract it all into one directory ?
(while preserving the directory structure ?)
also you need to invoke it in the directory where extracted it, OR add the directory to your include-paths
Yes, I extracted and ran from the place where it was extracted to. The files are actually there in the correct place, except that the dir structure looks like where "." is the folder I am running from.
.
└───include └───cling └───Interpreter
It works when I move the cling folder a step up and I can do some basic stuff like _cprintf(), variable assignment but trying to work with iostream has not been possible as of yet. This is how it looks like when the cling folder is one step up in the dir struct.
C:\Users\Awais\Downloads\cling_x86_MSVC_12>cling.exe
ERROR in cling::CIFactory::createCI():
resource directory C:\Users\Awais\Downloads\lib\clang\3.6.0 not found!
In file included from input_line_3:1:
./cling/Interpreter/RuntimeUniverse.h:26:10: warning: #include resolved using
non-portable MSVC search rules as: ./cling/Interpreter/RuntimeException.h
[-Wmsvc-include]
#include "cling/Interpreter/RuntimeException.h"
^
Edited by Awais Ahmad
on
Reason: formatting the dir struct