I found the issue. I was using this code within a bigger project which had old files, one of them was the ceres.dll which it was linking against. I guess the size of