1) click on the Projects ->"Project Options"->"Parameters"
2) under "Linker", where it says: "Add Library or Object",
click that button,
3) scan across the list until you find the library you want to link,
(**if libcurl.a is not in the default /lib/ folder, then select the correct
folder),
Double click on it,
that will place libcurl.a in the linker list,
repeat process for more libraries,
4) click on the OK button to close that window,
5) Under FILE, click on "Save All",
6) Under Execute, click on "Rebuild All"
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When you open the project are the librarys in the project?
Sometimes the order the libraries are listed in projects affects linking, try
swapping order of file.a and file.dll .
I dont do much programing with libraries, but do you really need both the .a
and .dll files, try using just the .a file.
Is the library in the project directory? Try a copy of the library in project
directory.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am using Dev-cpp - 7.3.1.3 On Windows XP
I want to use curl in my project built using devcpp
So I created a static library (project) in devcpp for the same.
I have include all the necessary curl files in it.
Then i created a console project,
But i have no idea as to how to link to my static library
While running the following code
The compiler is giving me the following error
I tried to add the library (libcurl.a, libcurldll.a) and other libraries
through
But nothing Works.
ThankYOu
Try:
1) click on the Projects ->"Project Options"->"Parameters"
2) under "Linker", where it says: "Add Library or Object",
click that button,
3) scan across the list until you find the library you want to link,
(**if libcurl.a is not in the default /lib/ folder, then select the correct
folder),
Double click on it,
that will place libcurl.a in the linker list,
repeat process for more libraries,
4) click on the OK button to close that window,
5) Under FILE, click on "Save All",
6) Under Execute, click on "Rebuild All"
When you open the project are the librarys in the project?
Sometimes the order the libraries are listed in projects affects linking, try
swapping order of file.a and file.dll .
I dont do much programing with libraries, but do you really need both the .a
and .dll files, try using just the .a file.
Is the library in the project directory? Try a copy of the library in project
directory.