News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

question about adding a new library

Started by zhengwc, April 14, 2011, 11:20:11 AM

Previous topic - Next topic

zhengwc

I have a pragram about cups,it must include cups' library.so I add "/usr/include/cups/cups.h" in project->build options->link settings->link libraries. But the result of building is undefined reference to `cupsRasterOpen',just like this. what is problem?

Jenna

The problem is, that you do not know the difference between header-files and libraries.
This forum is not a forum to teach the programming basics to beginners.

You should read a good book (or tutorial) about programming to understand how the build-process (compiling and linking) works.