(Because the document is right
here in the source code rather than in an external file.)
The Ruby Programming Language, 1st Edition p 51
Saturday, June 19, 2010
Tuesday, June 15, 2010
c++ ** stack smashing detected ***
http://ubuntuforums.org/archive/index.php/t-352672.html
changed
char wordFromFile[36];
to
char wordFromFile[256];
to make it work
I think the stack smashing was detected only after the function returned, not when the stack was actually getting smashed.
changed
char wordFromFile[36];
to
char wordFromFile[256];
to make it work
I think the stack smashing was detected only after the function returned, not when the stack was actually getting smashed.
Thursday, June 3, 2010
Sunday, May 30, 2010
moving pointers around
if(*(*(args->arg_array+i)+1) == '\0'){
args->rdfilename[0] = (args->arg_array[i+1]); // point to the filename
}
// if the next character is a character make that character the start of the filename
else{
args->rdfilename[0] = (*(args->arg_array+i)+1);// point to the filename
//not args->rdfilename[0] = *(*(args->arg_array+i)+1);
// **(args->arg_array+i) = '\0'; // remove the < // I deleted the < but the pointer is still pointing to its slot
args->rdfilename[0] = (args->arg_array[i+1]); // point to the filename
}
// if the next character is a character make that character the start of the filename
else{
args->rdfilename[0] = (*(args->arg_array+i)+1);// point to the filename
//not args->rdfilename[0] = *(*(args->arg_array+i)+1);
// **(args->arg_array+i) = '\0'; // remove the < // I deleted the < but the pointer is still pointing to its slot
Saturday, May 29, 2010
ld.so.1: sh.out: fatal: relocation error: R_SPARC_JMP_SLOT: unidentifiable procedure reference: link-map 0xff3f7368, offset 0x49, called from 0x10ed0
ld.so.1: sh.out: fatal: relocation error: R_SPARC_JMP_SLOT: unidentifiable procedure reference: link-map 0xff3f7368, offset 0x49, called from 0x10ed0
Tuesday, May 25, 2010
-lpthread: linker input file unused because linking not done
gcc: -lpthread: linker input file unused because linking not done
gcc: -lrt: linker input file unused because linking not done
I got this error/warning when I put the -lpthread in my general flags macro.
It should only be on the final (top level) linking.
gcc: -lrt: linker input file unused because linking not done
I got this error/warning when I put the -lpthread in my general flags macro.
It should only be on the final (top level) linking.
Friday, May 14, 2010
passing arg 3 of `pthread_create' from incompatible pointer type
http://www.kernel.org/doc/man-pages/online/pages/man3/pthread_create.3.html
Subscribe to:
Posts (Atom)