Are you trying to write C++ code to put in matlab or what are you trying to do? Normally any C code shouldn't have a problem compiling with a C++ compiler, look at the code, see how it works and try to create your own function from it.
i tried to comple ltqnorm.c writing main.c in visual studio
it gets compiled and executes also. but the problem is it is returning only the lower bound value, but matlab norminv function returns 2 values lower bound value and upper bound value
It is not easy to code the eigen system problem, first you need to compute the characteristic polynimal of the matrix, then solve the equation, then solve the linear system for each single eigen value , and than you get eigen vectors. It is a long process, try to find a c++ library that does such thing. Cholesky decomposition algorithm is not stable, even if you find a solution in c++, you still need to do same extra work...