I wrote a program to solve a system of linear equations. It works fine with the VS compiler. But when I try to run it using Cygwin, I get a seg fault(core dumped). But it does not say where the seg fault is.
I am using the following commands:
to complie: g++ -Wall -o main.out main.cpp
to run: ./main.out
Is there an option that i can put while running so that I can know on which line the seg fault is.