bmeta_info.cpp:4280: undefined reference to ‘crypt’
collect2: ld returned 1 exit status
Information found online shows:
Undefined reference to error: this type of error is in the process of connection, there may be two reasons: one is the user to define a function or global variable in a source code file that is not compile, link, or simply has not been defined, it requires the user to modify source program according to the practical situation, presents the definition of a global variable or function body; The second is that the undefined symbol is a standard library function, which is used in the source program, and the corresponding library name is not given during the connection process, or the directory name of the archive has a problem
Use the Man crypt command to find the following information:
GNU EXTENSION
The glibc2 version of this function has the following additional features. If salt is a character string starting with the three characters "$1$" followed by at most eight characters, and optionally terminated by "$", then instead of using the DES machine, the glibc crypt function uses an MD5-based algorithm, and outputs up to 34 bytes, namely "$1$<string>$", where "<string>" stands for the up to 8 characters following "$1$" in the salt, followed by 22 bytes chosen from the set [a–zA–Z0–9./]. The entire key is significant here (instead of only the first 8 bytes).
Programs using this function must be linked with -lcrypt.
Program using this function must be linked with -lcrypt. The program must be linked with -lcrypt
Reference: [http://blog.sina.com.cn/s/blog_64c238860100wzoo.html]
Read More:
- .. ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status make[2]: ***
- Php7 compiles collect2: error: LD returned 1 exit status
- Collect2: error: LD returned 1 exit status
- Collect2.exe: error: LD returned 5 exit status solution
- collect2: error:ld returned 1 exit status solution
- undefined reference to `pthread_create’ collect2: ld returned 1 exit status
- About the problem of collect2.exe [error] LD returned 1 exit status in dev!!!
- Solutions to the problem of collect2: error: LD returned 1 exit status
- Solutions to the problem of “collect2.exe: error: LD returned 1” exit “status when writing C + + with vscode
- undefined reference to `WinMain‘collect2.exe: error: ld returned 1 exit status
- Error: LTO wrapper failed collect2: error: LD returned 1 exit status
- A solution to [error] LD returned 1 exit status
- Solution to error [error] LD returned 1 exit status in C language
- Solution to dev C + + error [error] LD returned 1 exit status
- In function `_start’ undefined reference to `main’ error: ld returned 1 exit status
- ||Error: LD returned 1 exit status | C + + compile time problems
- Error: LD returned 1 exit status appears when developing esp8266 with anxinco IDE
- Error: Command ‘arm linux gnueabihf GCC’ failed with exit status 1, raspberry pie install paramiko
- command ‘gcc‘ failed with exit status 4
- Possible causes of [errror] ID returned 1 exit status error in dev C + + Programmer