hello , i 'm trying to simulate my code c++ with vivado HLS.when i include file c program, i get 9 errors :
Code:
Starting C simulation ...
D:/Vivado_HLS/2016.4/bin/vivado_hls.bat C:/Users/aychoucha/Documents/simulate/architechture/solution1/csim.tcl
INFO: [HLS 200-10] Running 'D:/Vivado_HLS/2016.4/bin/unwrapped/win64.o/vivado_hls.exe'
INFO: [HLS 200-10] For user 'aychoucha' on host 'desktop-bs3qfva' (Windows NT_amd64 version 6.2) on Sun Oct 29 18:53:14 +0100 2017
INFO: [HLS 200-10] In directory 'C:/Users/aychoucha/Documents/simulate'
INFO: [HLS 200-10] Opening project 'C:/Users/aychoucha/Documents/simulate/architechture'.
INFO: [HLS 200-10] Opening solution 'C:/Users/aychoucha/Documents/simulate/architechture/solution1'.
INFO: [SYN 201-201] Setting up clock 'default' with a period of 10ns.
INFO: [HLS 200-10] Setting target device to 'xc7z020clg484-1'
INFO: [SIM 211-2] *************** CSIM start ***************
WARNING: [SIM 211-51] HLS only supports CLANG compiler in Linux.
INFO: [SIM 211-4] CSIM will launch GCC as the compiler.
   Compiling(apcc) ../../../../src/main.c in debug mode
INFO: [HLS 200-10] Running 'd:/Vivado_HLS/2016.4/bin/unwrapped/win64.o/apcc.exe'
INFO: [HLS 200-10] For user 'aychoucha' on host 'desktop-bs3qfva' (Windows NT_amd64 version 6.2) on Sun Oct 29 18:53:47 +0100 2017
INFO: [HLS 200-10] In directory 'C:/Users/aychoucha/Documents/simulate/architechture/solution1/csim/build'
In file included from ../../../../src/main.c:51:
d:/Vivado_HLS/2016.4/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\typeinfo.h:16:2: error: This header requires a C++ compiler ...
#error This header requires a C++ compiler ...
 ^
d:/Vivado_HLS/2016.4/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\typeinfo.h:19:10: fatal error: 'typeinfo' file not found
#include <typeinfo>
         ^
2 errors generated.
   Compiling(apcc) ../../../../src/svm-predict.c in debug mode
INFO: [HLS 200-10] Running 'd:/Vivado_HLS/2016.4/bin/unwrapped/win64.o/apcc.exe'
INFO: [HLS 200-10] For user 'aychoucha' on host 'desktop-bs3qfva' (Windows NT_amd64 version 6.2) on Sun Oct 29 18:54:01 +0100 2017
INFO: [HLS 200-10] In directory 'C:/Users/aychoucha/Documents/simulate/architechture/solution1/csim/build'
apcc_db/svm-predict.c:205:8: error: conflicting types for '__strtod'
d:\vivado_hls\2016.4\msys\bin\../lib/gcc/mingw32/4.6.2/../../../../include/stdlib.h:312:32: note: previous declaration of '__strtod' was here
   Compiling(apcc) ../../../../src/svm-train.c in debug mode
INFO: [HLS 200-10] Running 'd:/Vivado_HLS/2016.4/bin/unwrapped/win64.o/apcc.exe'
INFO: [HLS 200-10] For user 'aychoucha' on host 'desktop-bs3qfva' (Windows NT_amd64 version 6.2) on Sun Oct 29 18:54:17 +0100 2017
INFO: [HLS 200-10] In directory 'C:/Users/aychoucha/Documents/simulate/architechture/solution1/csim/build'
apcc_db/svm-train.c:221:8: error: conflicting types for '__strtod'
d:\vivado_hls\2016.4\msys\bin\../lib/gcc/mingw32/4.6.2/../../../../include/stdlib.h:312:32: note: previous declaration of '__strtod' was here
   Compiling(apcc) ../../../../src/svmtrain.c in debug mode
INFO: [HLS 200-10] Running 'd:/Vivado_HLS/2016.4/bin/unwrapped/win64.o/apcc.exe'
INFO: [HLS 200-10] For user 'aychoucha' on host 'desktop-bs3qfva' (Windows NT_amd64 version 6.2) on Sun Oct 29 18:54:27 +0100 2017
INFO: [HLS 200-10] In directory 'C:/Users/aychoucha/Documents/simulate/architechture/solution1/csim/build'
../../../../src/svmtrain.c:479:57: error: too many arguments to function call, expected 2, have 3
                        error_msg = model_to_matlab_structure(plhs, nr_feat, model);
                                    ~~~~~~~~~~~~~~~~~~~~~~~~~                ^~~~~
../../../../src/svm_model_matlab.h:2:1: note: 'model_to_matlab_structure' declared here
const char *model_to_matlab_structure( int num_of_feature, struct svm_model *model);
^
../../../../src/svm_model_matlab.h:1:10: warning: tentative array definition assumed to have one element
mxArray *plhs[];
         ^
1 warning and 1 error generated.
   Generating csim.exe
ERROR: [HLS 200-101] Message ID '1-1' value invalid for uint argument.

FORMAT
  ap_puts_err [OPTIONS] [ Message namespace] [ Message ID] [ Message string]
      <string>
      <uint>
      <string>

ERROR: [APCC 202-3] Gcc Compile failed: 
ERROR: [APCC 202-3] Tmp directory is apcc_db
ERROR: [APCC 202-1] APCC failed.
ERROR: [APCC 202-3] Gcc Compile failed: 
ERROR: [APCC 202-3] Tmp directory is apcc_db
ERROR: [APCC 202-1] APCC failed.
ERROR: [HLS 200-101] Message ID '1-1' value invalid for uint argument.

FORMAT
  ap_puts_err [OPTIONS] [ Message namespace] [ Message ID] [ Message string]
      <string>
      <uint>
      <string>

g++.exe: error: obj/main.o: No such file or directory
g++.exe: error: obj/svm-predict.o: No such file or directory
g++.exe: error: obj/svm-train.o: No such file or directory
g++.exe: error: obj/svmtrain.o: No such file or directory
make: *** [csim.exe] Error 1
ERROR: [SIM 211-100] 'csim_design' failed: compilation error(s).
INFO: [SIM 211-3] *************** CSIM finish ***************
4
    while executing
"source C:/Users/aychoucha/Documents/simulate/architechture/solution1/csim.tcl"
    invoked from within
"hls::main C:/Users/aychoucha/Documents/simulate/architechture/solution1/csim.tcl"
    ("uplevel" body line 1)
    invoked from within
"uplevel 1 hls::main {*}$args"
    (procedure "hls_proc" line 5)
    invoked from within
"hls_proc $argv"
Finished C simulation.
Could anyone please tell me what i am missing?

Thanks in advance.