Archive for the ‘tutorial’ Category

External Libraries in XCode

Wednesday, February 6th, 2008

I need to compile something and use the MySQL C++ library. I have mysql and mysql++ already compiled, I won't go over how to do that now. I added the following code to the top of my source: #include <mysql++.h> I got an error /Users/jhaddad/dev/search_engine/main.cpp:4:21: error: mysql++.h: No such file or directory Not ...

How to use CURL to Hit a Web Api Using HTTP Basic Authentication

Wednesday, May 30th, 2007

Curl is a fantastic application. The most basic use of curl is very straightforward, just put in a web site's url: curl http://twitter.com If you copy and paste the above code, you'll get the HTML output of twitter's home page. In order to demo this, I created a twitter account. You can sign ...