gcc
-
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
-
warning: deprecated conversion from string constant to 'char*'Computer/linux 2007. 11. 16. 23:02
After upgrading gcc version 4.2.3 20071014 (prerelease) (Debian 4.2.2-3), there are a lot of warning message as warning: deprecated conversion from string constant to 'char*' To add const before char*, the warning message was gone. void nrerror(const char *error_text); void nrerror(const char *error_text) /* Numerical Recipes standard error handler */ { fprintf(stderr,"Numerical Recipes run-time..