lookup message trying to write to a file

J

juliatiupsam

Dear all,
I get the following message:

lookup 0x08048000 0x00000358 -> 0xb7e74000 0x000560c0 /1 fwrite

executing:

FILE * data_file = fopen("patterns.ptt", "w");
if(data_file!=NULL){
char ppt[] ="patterns:";
fwrite(ppt,sizeof(char),strlen(ppt),data_file);
...
fclose(data_file);
}
The same message is thrown using any of these other functions:
fputc('\n',data_file);

fputs("inputs:\t",data_file);

fprintf(1,"%d",inputs);

Does anyone know the reason?
Thanks in advance,
 
F

Flash Gordon

Dear all,
I get the following message:

lookup 0x08048000 0x00000358 -> 0xb7e74000 0x000560c0 /1 fwrite

executing:

FILE * data_file = fopen("patterns.ptt", "w");
if(data_file!=NULL){
char ppt[] ="patterns:";
fwrite(ppt,sizeof(char),strlen(ppt),data_file);
...
fclose(data_file);
}
The same message is thrown using any of these other functions:
fputc('\n',data_file);

fputs("inputs:\t",data_file);

fprintf(1,"%d",inputs);

Does anyone know the reason?

Yes, you have an error somewhere in the code you have not shown us.
Please provide a small, complete, compilable example program that
exhibits the problem.
 
M

Malcolm McLean

Dear all,
I get the following message:

lookup 0x08048000 0x00000358 -> 0xb7e74000 0x000560c0 /1 fwrite

executing:

FILE * data_file = fopen("patterns.ptt", "w");
if(data_file!=NULL){
char ppt[] ="patterns:";
fwrite(ppt,sizeof(char),strlen(ppt),data_file);
...
fclose(data_file);
}
The same message is thrown using any of these other functions:
fputc('\n',data_file);

fputs("inputs:\t",data_file);

fprintf(1,"%d",inputs);

Does anyone know the reason?
Thanks in advance,
You need to pass data_file as the first argument to fprintf(). However the
rest of the code looks fine. There is some sort of internal error in the
file system. Try a new name and a different physical drive.
 
R

Richard Tobin

I get the following message:

lookup 0x08048000 0x00000358 -> 0xb7e74000 0x000560c0 /1 fwrite

This looks like some kind of debugging message from the dynamic loader
on a Linux system. Unfortunately, all one can say is that there's
probably an error somewhere in your code that is causing it to be
printed. If you can post a short *complete* program that provokes the
error, we may be able to help you.

-- Richard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,062
Latest member
OrderKetozenseACV

Latest Threads

Top