Author Topic: question about adding a new library  (Read 2466 times)

Offline zhengwc

  • Single posting newcomer
  • *
  • Posts: 5
question about adding a new library
« on: April 14, 2011, 11:20:11 am »
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?

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: question about adding a new library
« Reply #1 on: April 14, 2011, 11:41:28 am »
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.