분류 전체보기
-
declaration of ‘array’ as multidimensional array must have bounds for all dimensions except the firstComputer/linux 2008. 8. 19. 21:06
C compiler issues the error : declaration of ‘array’ as multidimensional array must have bounds for all dimensions except the first sum_function (TH1D* inHisto[][]);Solution: sum_function(TH1D* inHisto[][10]); Reference : http://oreilly.com/catalog/cplus2/errata/cplus2.confirmed
-
"Search" example in CComputer/linux 2008. 8. 18. 19:34
header file : #include reference : http://www.gnu.org/software/libc/manual/html_node/Searching-and-Sorting.html#Searching-and-Sortinghttp://www.codecogs.com/reference/c/search.h/ Defining how to compare two int objects: int compare_ints (const void *a, const void *b) { const int *da = (const int *) a; const int *db = (const int *) b; return (*da > *db) - (*da < *db); } return : negative if a “le..
-
warning: incompatible implicit declaration of built-in function ‘strstr’Computer/linux 2008. 8. 15. 06:31
Problem : When I try to compile c program, I met the following error message: warning: incompatible implicit declaration of built-in function ‘strstr’ Analysis : This means that no header file contains the strstr function that I use in the program. Solution : Add the header file according to my function (strstr) #include
-
Keyboard doesnot work in the virtualbox.Computer/linux 2008. 7. 12. 04:55
After installing the VirtualBox OSE on the Ubuntu 8.04, I installed Windows xp. There is a keyboard issue. It can be solved by adding the follwoing lines in the /usr/bin/VBoxManage. GTK_IM_MODULE=none QT_IM_MODULE=none XMODIFIERS=none