can't call any functions with devIL

I would like to be able to use the devIL library for a project I am working on, but for some reason I cannot get it set up correctly. In my project, I have:

#include <IL/il.h>
#include <IL/ilu.h>
#include <IL/ilut.h>

If I do not call any devIL functions, then the file will compile with no errors. However, as soon as I include


I get

undefined reference to `ilInit'
collect2: ld returned 1 exit status

What am I doing wrong?

Edit: I am running Ubuntu 11.10


Apparently you are including the headers, but not linking the binaries. With gcc, this can be done using the -l-option.

Need Your Help

Why button changes size when color changed?

java android android-layout

I am writing a simple tic tac toe application that has 3 by 3 array of buttons, when someone wins it changes colors, however when colors change it becomes of bigger size and you cannot see individual

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.