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 "__libc_start_main() "
No source available for "__libc_start_main() " [message #783226] Wed, 25 January 2012 10:13 Go to next message
Roberto Zanetto is currently offline Roberto ZanettoFriend
Messages: 5
Registered: January 2012
Junior Member
When I debug this program, at the end I recive the error:

No source available for "__libc_start_main() "



#include <stdio.h>
#include <stdlib.h>

void main()
{
int num,i;
double *p;

num=5;

p=(double *) malloc (sizeof(double)*num);
if (p==NULL) printf ("error memory\n");

p[0]=1.0;
p[1]=2.0;
p[2]=3.0;
p[3]=4.0;
p[4]=5.0;

for (i=0;i<5;i++)
{
printf ("%f",p[i]);
}

free(p);
}
Re: No source available for "__libc_start_main() " [message #783248 is a reply to message #783226] Wed, 25 January 2012 10:55 Go to previous messageGo to next message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
A quick search in this forum for "__libc_start_main()" would have given you an answer.

http://www.eclipse.org/forums/index.php/m/762565/?srch=__libc_start_main#msg_762565


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: No source available for "__libc_start_main() " [message #783329 is a reply to message #783226] Wed, 25 January 2012 14:24 Go to previous messageGo to next message
Roberto Zanetto is currently offline Roberto ZanettoFriend
Messages: 5
Registered: January 2012
Junior Member
I do not understand how to do that is to say: nothing to do?

my program printf nothing in console window, is this problem linked to libc?

thank you
Re: No source available for "__libc_start_main() " [message #783330 is a reply to message #783226] Wed, 25 January 2012 14:26 Go to previous messageGo to next message
Roberto Zanetto is currently offline Roberto ZanettoFriend
Messages: 5
Registered: January 2012
Junior Member
excuse me, if I do two times debug, then the second time I read printf in console
Re: No source available for "__libc_start_main() " [message #783381 is a reply to message #783329] Wed, 25 January 2012 16:08 Go to previous message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
Roberto Zanetto wrote on Wed, 25 January 2012 15:24
I do not understand how to do that is to say: nothing to do?

my program printf nothing in console window, is this problem linked to libc?

thank you

You should read the aboved mentioned forum entry more carefully (the comments from Hagen are very informative). There is no problem.

You tried to debug the function __libc_start_main() that called main(). This function is in glibc. You can install the glibc source code and then you can debug this function (if you like).


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Previous Topic:Import error parser
Next Topic:Unable to install CDT : Invalid content:cdt_win32.jar
Goto Forum:
  


Current Time: Thu Apr 25 20:15:07 GMT 2024

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

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

Back to the top