Solving a matrix

I have routines from Numerical Recipes for Pascal for solving
a matrix (simplex method) but I can't get it to work in delphi,
although it works well in Turbo Pascal 6

Has anyone been able to get a matrix to solve in Delphi.