Pippi
Pippi

Reputation: 2571

Why does gdb always give "Program exited with code 01"?

I have a main.cpp file and two .hpp files, one of which contains a set of classes and methods that I make modifications to. Compiling main is successful, but Running main results in Segmentation Fault. Following this tutorial, I used:

$ gdb main
(gdb) run

However, (gdb) run always produces the following regardless whether the .hpp file has bugs:

Reading symbols for shared libraries . done
Usage: viewer NODES_FILE TETS_FILE

Program exited with code 01.

Is there something that I am missing?

Upvotes: 0

Views: 13800

Answers (1)

Robᵩ
Robᵩ

Reputation: 168586

Try issuing these commands:

$ gdb main
(gdb) run nodes_file test_file

Filling in, of course, the correct values for the two parameters.

Upvotes: 3

Related Questions