I need major help. My program will compile but when I run it I get a segmentation fault. I don't know how to run a debugger with multiple files. Could someone please find when this error occurs? My project is due in 2 hours.
nizbit 0 Junior Poster in Training
Recommended Answers
Jump to PostWell perhaps you could begin by using a debugger?
Do you even know what one is? I only ask because sometimes knowledge about even the existance of such things comes as a surprise to some people.Or even telling us the sequence of commands which leads to a problem.
…
Jump to Post> but for only a single file-not multiple files.
How is this any different?
Open your file of choice, click in the margin at the place you want to stop, and add breakpoint.
Or if you're using a command line debugger, then perhaps
stop in classname::method
Jump to PostThe only thing the debugger needs from the linker is a decent symbol table so it can find stuff out for you, and relate that back to your source code in a form you can understand.
Jump to PostI think you need to post some actual text or images of these error messages.
Because that made no sense whatsoever.
All 15 Replies
vmanes 1,165 Posting Virtuoso
nizbit 0 Junior Poster in Training
VernonDozier 2,218 Posting Expert Featured Poster
Salem 5,265 Posting Sage
nizbit 0 Junior Poster in Training
Salem 5,265 Posting Sage
nizbit 0 Junior Poster in Training
Salem 5,265 Posting Sage
nizbit 0 Junior Poster in Training
Salem 5,265 Posting Sage
nizbit 0 Junior Poster in Training
Salem 5,265 Posting Sage
nizbit 0 Junior Poster in Training
VernonDozier 2,218 Posting Expert Featured Poster
Insomniac119 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.