User forums > Using Code::Blocks

question about adding a new library

(1/1)

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.

Navigation

[0] Message Index

Go to full version