Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » No source available for __mingw_CRTStartup() (C)(c-program crashing)
No source available for __mingw_CRTStartup() (C) [message #1730980] Sun, 01 May 2016 14:31 Go to next message
Jakob Henning Jensen is currently offline Jakob Henning JensenFriend
Messages: 1
Registered: May 2016
Junior Member
Im a bit new to C, and Eclipse running Mars edition.

I've written a program, which crashes.
When i run the debugger the program crashes after "return 0;" that is when the last "}" is being "runned" with the following error

No source available for "__mingw_CRTStartup() at 0x401250"

I have tried everything so far (even went to page 3 on google!), and since it's a part of my bachelor thesis i would like to make it work .

Do you have any suggestions ?

Thanks in advance!
Re: No source available for __mingw_CRTStartup() (C) [message #1731110 is a reply to message #1730980] Mon, 02 May 2016 21:01 Go to previous message
David Wegener is currently offline David WegenerFriend
Messages: 1445
Registered: July 2009
Senior Member
Are you sure your program is crashing? What you describe is the
expected behavior if you step over or into the return statement of you
program. Mingw automatically includes a special object file distributed
with mingw that contains the entry point for you program. This then
calls your main function.

Normally, you won't have the source code for this entry point object
included in you project so when you step over/into the return statement,
the debugger stops at code in this routing but can't locate source to
show in the debugger.

At this point in your debugging session, your program has exited so
there isn't much of a reason to continue debugging into the entry point
launcher code. You should just hit the Run/Continue button to start up
execution and your program should exit normally.
Previous Topic:Invalid project path: Workspace include path inaccessible
Next Topic:I have a problem with cdt(Newcomer)
Goto Forum:
  


Current Time: Tue Mar 19 03:14:21 GMT 2024

Powered by FUDForum. Page generated in 0.02208 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top