Help! An error occurred while reading the function!
Source: Internet
Author: User
Help! An error occurred while reading the function! -- Linux general technology-Linux programming and kernel information. The following is a detailed description. Source code:
# Include
# Include
# Include
# Include
# Include
Int main ()
{
Int fd1;
Char buffer [100];
Int num, I;
If (fd1 = open ("test1.dat", O_RDONLY) =-1 ){
Perror ("Cannot open the test1 file ");
Return 1;
}
While (num = read (fd1, & buffer, 10)> 0 ){
Printf ("% s", buffer );
}
Close (fd1 );
Return 0;
}
There are no errors during compilation, and the execution will not move! For example
PICTURE:/root/. tencent/qq // AppData/file // sendpix0.jpg
Error message displayed during debugging: missing separate debuginfos use debuginfo-install glibc. i686!
Hope you can help me! Thank you!
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service