Why does this code doesnt run | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
5 Answers
+ 2
Brian obviously it's part of a project and yes the files are incomplete but from the error logs it seems that SSL_connect() fails, I have no idea why, but the Q is why OP still sends request which causes a segfault (or I might be wrong).
17th Mar 2023, 11:07 AM
Tina
Tina - avatar
+ 1
In ssl_connect.c, it is missing a # in front of the #include statement. The other files seem incomplete, as though they were recovered from a hard disk failure or something.
16th Mar 2023, 8:53 PM
Brian
Brian - avatar
0
Tina I understand everything you say but "the files are incomplete" Can you give me example of it Cause i finished the project
17th Mar 2023, 12:31 PM
Jables
0
Have u tried u losing the standard UTF code to run the code??
17th Mar 2023, 4:07 PM
God'swill
God'swill - avatar
0
Source: https://code.sololearn.com/cEO5cH2d88zu/?ref=app https://code.sololearn.com/cAinX4poRdgv/?ref=app https://code.sololearn.com/csgcMXzWvoIG/?ref=app https://code.sololearn.com/c2uiuHQ48WG5/?ref=app I was tryin to compile and run butthis the result 👇 ld.lld: error: undefined symbol: main >>> referenced by crtbegin.c >>> /data/data/com.termux/files/usr/lib/crtbegin_dynamic.o:(_start_main) >>> referenced by crtbegin.c >>> /data/data/com.termux/files/usr/lib/crtbegin_dynamic.o:(_start_main) clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
18th Mar 2023, 7:25 AM
Jables