crypt function and link error “undefined reference to 'crypt'”

后端 未结 6 1440
别跟我提以往
别跟我提以往 2020-12-11 18:34

I have used the crypt function in c to encrypt the given string. I have written the following code,

#include
#include

int mai         


        
6条回答
  •  春和景丽
    2020-12-11 19:17

    You need to put the following line before your includes:

    #define _XOPEN_SOURCE
    

提交回复
热议问题