Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: zhengwc 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?
-
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.