Making libcurl CodeLite Project - c

I have downloaded Curl and would like to add libcurl only (no other stuffs) to my CodeLite Workspace. I have seen VC Project files but I do not use VC (and I use Primarily Ubuntu).
So I need help to know which files to Include and any pre-processor that I need to include for the library to compile.
I have tried adding all *.c/*.h files but I keep getting errors (if those errors can be of help I will post them). Add the include folder in curl root directory does not help either.
Thanks

I ended up with compiling library with terminal and just tell CL to find it there!

Related

openGL with glew - file missing

I tried getting this repository to work.
And here is the problem: I saw that the demo program included GLEW as a static library (not sure about that - the source code of GLEW is included. Is that a library then? I don't know) and I thought because I'm on Ubuntu (20.04) that could be done easier. So I used the sudo apt-get install libglew-dev to install all needed header files and so on. Easy! But then there came a part in the demo where the header file eglew.h was used and gcc could not find that. I looked into /usr/include/GL and this header file was really missing. I tried installing a bunch of other packages. No success.
Does someone out there know how I get the package with this header file? Or is there no other way around than to do it like in the demo with a CmakeList?
You should be able to find the missing header file from here which is the official site: http://glew.sourceforge.net/
If not, you can defiantly find the missing header here:
https://chromium.googlesource.com/external/github.com/google/quic-trace/+/refs/heads/master/third_party/glew/include/GL

Linking Curl to a CodeBlocks C project

I am trying to link Curl to my CodeBlocks C project for at least 6 hours unsuccessfully. I googled and followed many instructions but nothing seems to work.
I have downloaded curl-7.54.1 as a .zip file, copied the curl.exe to C:/Windows/System32 and added it to Path. I can call curl from the command prompt successfully but I cannot figure out how to link the library to my project.
I tried copying the curl folder to my project folder, I tried linking the libraries from the Compiler Settings in CodeBlocks, I tried various combinations of Linker libraries, Other linker settings, etc... and NOTHING works.
I need some help to figure out how to successfully link this project, simple concise steps will be greatly appreciated!

Missing .dll files when compiling with notepad++ and minGW

Recently I started coding in C and I tried to find a way to compile with notepad++. After thouroughly installing minGW with some basic upgrades I tried to use a specific code that allows me to compile.
This code is can be found on thise webpage:
http://www.thecrazyprogrammer.com/2015/08/configure-notepad-to-run-c-cpp-and-java-programs.html
So you can see what I am trying to do.
However when I try to execute the command, it gives me the warning that several .dll files are missing.
These are the ones: libgmp-10.dll ; libiconv-2.dll ; libmpc-3.dll and libmpfr-4.dll
After some research, I added those files to the bin, lib and libexec folders of the minGW headfolder and it resulted in giving me another missing lib file:
libgcc_s_dw2-1.dll
Ok I added that one too and now it starts over saying it is missing libiconv-2.dll
I added all the folders to my PATH and there is nothing else I can think of that is wrong =(
If u find a solution, please explain it in detail since I am not a programmer and only have little experience with going this 'deep' into files and paths etc ...
Thanks in advance!
Oh I found it myself I think.
I read somewhere that using gcc in stead of g++ could help and after copying the missing files to a bunch of folders it worked :D

Project needs assistance with header files

I am currently working on a small project that runs off of a completely custom built version on linux. I have a copy of all the header files that are in /usr/include on the customer OS however I really dont get along with that OS so i want to carry on the project from my fedora box. I tried creating a new directory in the fedora's /usr/include however it throws up a hissy fit everytime it comes to compile. Is there a way that I can tell the compiler to go to another directory for header files, e.g. /usr/include2?
Thanks
-I /usr/include2 (though /usr/include2 is of course very bad name for this purpose).
See compiler's -I option. It allows you to specify where to look for header files.

How to install JudyArrays (C library) on Windows

I know it can sound as a pretty dumb question, but I do not have a great experience with installing downloaded libraries...
Anyhow I downloaded the source code of JudyArrays (which is a C library for a 256-trie for those who doesn't know it) from sourceforge and the installation instructions refers to the make command. I tried to download this utility, but I can't get it work. Which is the correct target makefile? All I managed to get was:
"..path\Makefile.in":15: *** missing separator. Stop.
I tried googling for some help but didn't find anything, either I'm searching with the wrong query string or I'm the only dumb person in the whole planet that can't manage to install it...
Any help? Is there any simpler method?
Thanks everyone
Run your Visual Studio Command Prompt to get a cmd.exe with the proper paths set. cd into the src directory of the JudyArrays source code and run build.bat. This'll compile Judy and produce a .lib and a .dll and a Judy.h header file file you'll have to use in your projects as any other 3. party library.

Resources