+ 2

Why i can't able to use this library? In C

I want to use libcurl.h file in C compiler... But it shows error,why? And also tell me, how can I use this library in sololearn... https://code.sololearn.com/cMh46PdF7Ov9/?ref=app

8th Nov 2020, 10:46 AM
Yogeshwaran P
Yogeshwaran P - avatar
6 Answers
+ 3
Yogeshwaran you need to manually link those external libraries as well as include their header files using a compiler. You can’t however do this on SoloLearn. You could maximum get http request if you write the low level socket programming for unix (didn’t try it, should be possible unless it requires any additional linking). Python is an interpreted language. Besides, you could trick SoloLearn to use python’s package manager (pip). C/C++ don’t save such built in package manager.
8th Nov 2020, 11:37 AM
Flash
+ 3
Stack Overflow says that you must download and install libcurl before you use it. Since you cannot do that here, you must understand that you cannot use it on Sololearn. https://stackoverflow.com/questions/11471690/curl-h-no-such-file-or-directory/11471743
8th Nov 2020, 10:53 AM
Avinesh
Avinesh - avatar
+ 2
Thank you Flash for yours detailed explanations.... And thank you so much Avinesh for yours answer...😊
8th Nov 2020, 11:43 AM
Yogeshwaran P
Yogeshwaran P - avatar
+ 1
Avinesh see this python code... In this code,I import module without pre-installing this module.....by using some special syntax..... Based on @Flash comment... In same way,is there any method in C to use library without installing it? https://code.sololearn.com/c0BT7v1ceSc6/?ref=app https://www.sololearn.com/Discuss/2574508/?ref=app
8th Nov 2020, 11:00 AM
Yogeshwaran P
Yogeshwaran P - avatar
+ 1
Why Flash ? Python library and python created by C/C++...... Then why we won't able to do it?.....
8th Nov 2020, 11:27 AM
Yogeshwaran P
Yogeshwaran P - avatar
0
Yogeshwaran I don’t think so.
8th Nov 2020, 11:24 AM
Flash