Help a brainlet out. How do I link libcurl? Why is not as easy as; Why do I have to type 10+ commands? You told me this shit was more efficient Jow Forums, you lying cocksuckers
import curl
using library curl;
fuck this gay C and C++ low level programming shit. its all made by queers, you cannot even import a library easily, fuck this man
I use static build.sh scripts, unless its fucking huge, then I go full autist with ninja
Christian Ward
I don't see any money in my bank account.
Luis Richardson
How does one import libraries in c/c++? Curious python/javascript developer here.
Oliver Kelly
thank you user, ill check them out. and do you recommend using conan or is it not advisable in the long run this attitude will get you nowhere apparently there is no standard way like PyPi/NPM/gems like our kind is used to. You have to mostly build the libs
tell me about it. and you have to track pointers and shit. apparently there is also a pointer to a pointer.
However Id recommend trying it out, this stuff is totally mind blowing and makes you look at computers with a brand new deeper understanding. for example I finally get the concept of heaps, stacks and overflows now though i crammed the whole concept to pass exams during my college days
Just admit you are a brainlet or pretend your time is valuable and use python for glue code.
Liam Hall
? just #inlcude are webdevs really this dumb?
Adrian Price
i know motherfucker. i included it using the already installed libcurl-devel, but this is not portable. i wanted to control everything down to the lib version used never. you also started somewhere idiot. you werent born writing Makefiles
>control everything down to the lib version used why that makes it unportable
Samuel Murphy
maybe a new version sucks on another platform and need an old version. maybe an older version on a package repo has bugs affecting your program but it wont be updated because the maintainer is non-responsive on bugzilla. maybe my main reason for learning this is so as to write malware during my free time and i want my instances to always run irrespective of what dependencies the target has installed
wouldn't the same apply to python and literally all other libraries?
Daniel Myers
pip beats cmake hands down in package management lad >wouldn't the same apply to python and literally all other libraries? no you suggested i use 3rd party prebuilt libraries to which i said i cant because of reasons above
Joseph Morales
pipenv is even better than pip alone or with manual virtualenv/virtualenvwrapper.
Justin Lopez
Just use const request = require('request'); or import request from 'request'; lad
Carter Walker
try something like cmake_minimum_required(VERSION 3.10) project(barebones)
set(CMAKE_CXX_STANDARD 14) # use c++14 instead of 11. you'll thank me.
# Find the package you care about and tell CMake this package is required. find_package(CURL REQUIRED)
add_executable(barebones main.cpp)
# Link to the curl library you found using find_package above. Find package ought to usually result in names of libraries like :: for curl, both of those happen to be CURL. You can check this looking at /usr/share/cmakewhatever/modules/... I think, or just do a `find /usr/share -type f -name FindCURL.cmake` and look at the various things in that directory. target_link_libraries(barebones PRIVATE CURL::CURL)
Always make sure to actually properly find your libraries (or write cmake modules to find them) so you get all the header information and stuff too.
Nathaniel Gomez
I never used cmake I make do with make I hardly use more than 1 or 2 libraries anyway
it...it unironically worked. Thanks user. are you a hacker or something? i just wanted to learn cmake incase i work on a complicated project the good life using virtualenv is a must, since the OSes depend so much on Python nowadays, you dont want to mess with system Python even normies think this language is shit github.com/ksimka/go-is-not-good
This is a generic person complaining about web devs. No, this is not how you import libraries in C/C++. You do this and you'll get unresolved external errors when linking.
Jacob Hill
wew lad, why didnt you come in earlier. this looks high quality its a godsend. >muh C++ is the best language >muh C++ is more effecient anons ive been fiddling with the libraries for the past hour , i havent even started writing shit yet
>even normies think this language is shit well, if you fall for memes, you have no one to blame but yourself in any case, I'm not wasting more time ITT.
Alexander Sullivan
why is there no equivalent to npm install curl or pipenv install curl
Brandon Murphy
This fucking thread is gold OP is a weblet (brainlet) retard to can't even use google. seriously fuck off, this isn't a forum for your problems, go back to r3ddit.
Jack Brooks
>(((pointer to a pointer)))
Christopher Scott
apt install libcurl-dev
Kevin Hernandez
at least i learned something from fucking Jow Forums of all places today unlike you who is damaging yourself by spewing hate and cancer across the internet. be a better person dude, think positive czeched dnf install libcurl-devel emerge --ask dev-libs/libcurl