[cs631apue] strmode

Jan Schaumann jschauma at stevens.edu
Tue Oct 16 20:54:45 EDT 2012


yluo4 <yluo4 at stevens.edu> wrote:

>   When I compile my program,it says "implicit declaration of function  
> 'strmode'".  The manual says this function from BSD systems (libbsd,  
> -lbsd), so I add '-lbsd' when compile, but it still doesn't work.  what  
> should I do to use this function?

The error "implicit declaration of function..." indicates that no
function prototype is found.  Function prototypes are declared in a
header file, hence look at the manual page and make sure to include the
headers the manual page tells you to include.

-Jan


More information about the cs631apue mailing list