Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Help with 3rd Party Library; C++
New Posts  All Forums:Forum Nav:

Help with 3rd Party Library; C++

post #1 of 3
Thread Starter 
Hi all,

I'm a bit confused with how to use a third party library within my C++ project. The librbary I am trying to use is cURL but I do not understand what files to download, and where to put files or link files in order to compile with it. I'm on Windows 7, using MinGW compiler, and the Eclipse IDE.

Any help would be greatly appreciated.
Thanks, FTW nt
thug lyfe
(13 items)
 
  
CPUMotherboardGraphicsRAM
AMD Phenom II X6 MSI 890FXA-GD70 Radeon HD 6850 1GB G.SKILL Ripjaws Series 4GB 
Hard DriveOSMonitorPower
Kingston 64GB SSD & WD 640GB HDD Windows 7 Home 64-bit 3x Samsung 21.5" LCD Eyefinity CORSAIR HX Series 750W 
Case
Antec Nine Hundred Black Steel 
  hide details  
Reply
thug lyfe
(13 items)
 
  
CPUMotherboardGraphicsRAM
AMD Phenom II X6 MSI 890FXA-GD70 Radeon HD 6850 1GB G.SKILL Ripjaws Series 4GB 
Hard DriveOSMonitorPower
Kingston 64GB SSD & WD 640GB HDD Windows 7 Home 64-bit 3x Samsung 21.5" LCD Eyefinity CORSAIR HX Series 750W 
Case
Antec Nine Hundred Black Steel 
  hide details  
Reply
post #2 of 3
The most likely download you are looking for if you are on Windows 7 is the cURL ZIP. Unzip the file, and copy the folder inside to your project folder (where your existing header/implementation files are located). The way to include a specific header (and therefore all methods mentioned within) is by something like this at the top of a file, before any variable or methods:

#include "curl-7.23.1/file.h"

where:
- curl-7.23.1 is the folder name (different if you got a newer/older version)
- file.h is the file to reference.
- double quotes are needed around the contents after the keywords #include, but some online tutorials use <> instead. I prefer double quotes as they usually denote custom/non-standard libraries.

Obviously if the file needed is nested inside multiple folders, you could use:

#include "curl-7.23.1/second_folder/file.h"

As for the specific file to include, not sure on your purpose and not too familiar with that library. There is documentation link on the webpage that you listed. Hope there is someone here that has used cURL before and can enlighten you further.

Good luck,
SuperStealth
Project Black
(14 items)
 
  
CPUMotherboardGraphicsRAM
Intel® Core™ i7 930 Asus P6X58D Premium HIS Radeon HD5850 G.Skill Trident 12GB 
Hard DriveCoolingOSPower
OCZ Agility 3 60GB, Intel X25-M 80GB + Seagate ... Custom Water Loop Windows 7 Professional x64 Seasonic X-750 
  hide details  
Reply
Project Black
(14 items)
 
  
CPUMotherboardGraphicsRAM
Intel® Core™ i7 930 Asus P6X58D Premium HIS Radeon HD5850 G.Skill Trident 12GB 
Hard DriveCoolingOSPower
OCZ Agility 3 60GB, Intel X25-M 80GB + Seagate ... Custom Water Loop Windows 7 Professional x64 Seasonic X-750 
  hide details  
Reply
post #3 of 3
Thread Starter 
Quote:
Originally Posted by SuperStealth View Post

The most likely download you are looking for if you are on Windows 7 is the cURL ZIP. Unzip the file, and copy the folder inside to your project folder (where your existing header/implementation files are located). The way to include a specific header (and therefore all methods mentioned within) is by something like this at the top of a file, before any variable or methods:
#include "curl-7.23.1/file.h"
where:
- curl-7.23.1 is the folder name (different if you got a newer/older version)
- file.h is the file to reference.
- double quotes are needed around the contents after the keywords #include, but some online tutorials use <> instead. I prefer double quotes as they usually denote custom/non-standard libraries.
Obviously if the file needed is nested inside multiple folders, you could use:
#include "curl-7.23.1/second_folder/file.h"
As for the specific file to include, not sure on your purpose and not too familiar with that library. There is documentation link on the webpage that you listed. Hope there is someone here that has used cURL before and can enlighten you further.
Good luck,
SuperStealth

+1, I'll hack up some code once I get a chance and see how it goes. Will let you know thumb.gif
thug lyfe
(13 items)
 
  
CPUMotherboardGraphicsRAM
AMD Phenom II X6 MSI 890FXA-GD70 Radeon HD 6850 1GB G.SKILL Ripjaws Series 4GB 
Hard DriveOSMonitorPower
Kingston 64GB SSD & WD 640GB HDD Windows 7 Home 64-bit 3x Samsung 21.5" LCD Eyefinity CORSAIR HX Series 750W 
Case
Antec Nine Hundred Black Steel 
  hide details  
Reply
thug lyfe
(13 items)
 
  
CPUMotherboardGraphicsRAM
AMD Phenom II X6 MSI 890FXA-GD70 Radeon HD 6850 1GB G.SKILL Ripjaws Series 4GB 
Hard DriveOSMonitorPower
Kingston 64GB SSD & WD 640GB HDD Windows 7 Home 64-bit 3x Samsung 21.5" LCD Eyefinity CORSAIR HX Series 750W 
Case
Antec Nine Hundred Black Steel 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Coding and Programming
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Help with 3rd Party Library; C++