I want to build cil on windows7 using msvc compiler "cl". But i have met the following question:
the build environment :
1、ocaml 3.11 (windows binary version)
4、msvc "cl" compiler
When i build cil with ocaml 3.08，erverything is ok. For the need of project , i want to use the c and ocaml mixing programming interface , so on windows platform ocaml 3.11 version and above is required ( because we need "ocamlmklib" tool for making dll library on windows).
After building cil , an error occurred （ after bash -c "make WIN32=1 quickbuild" command）：
flexlink : can not find command ....
So i install flexdll-0.26 binary version ， then build cil again , the preceding error passed , but another error occured :
Linking bytecode obj/x86_WIN32/cilly.byte.exe
+ flexlink -merge-manifest -exe -o "obj/x86_WIN32/cilly.byte.exe" "-LD:/Progra
m Files/Objective Caml/lib" "C:\Users\Suting\AppData\Local\Temp\camlprim86b256.c
" "-lstr" "-lunix" "ws2_32.lib" "-lunix" "-lstr" "obj/x86_WIN32/perfcount.obj" "
-lcamlrun" advapi32.lib ws2_32.lib /Zi /Od
** Fatal error: Cannot find file "/Zi"
File "_none_", line 1, characters 0-1:
Error: Error while building custom runtime system
make: *** [obj/x86_WIN32/cilly.byte.exe] Error 2
So can you give me any suggestion ? I will appreciate it .
ps: I do not think "/Zi" is the file , i find out it's just the option of cil compiler .