Thread: Boost Adobe gil: undefined reference for jpeg related feature

  1. #1
    Registered User
    Join Date
    Nov 2007
    Posts
    33

    Boost Adobe gil: undefined reference for jpeg related feature

    Hi,

    I'm using g++ on ubuntu 7.04.

    I'm trying to learn adobe gil, which is a library deal with image processing and accepted by boost.
    http://opensource.adobe.com/gil/index.html
    (Anybody know some forums specific for boost? I've had a look at Nabble Boost forum, but it seems like a forum for developers)

    However, when I compile some examples, e.g., x_gradient.cpp on the official site, I get the following error:
    http://graphics.csie.ntu.edu.tw/~jon.../gil.error.txt

    I am sure my boost working properly, and I've also installed the libjpeg-dev, libtiff-dev, libpng-dev on ubuntu through apt-get.

    So what may be the problem?

    Thanks in advance!

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,656
    Having installed the packages, you still need to tell the compiler/linker that you want to use them.

    gcc yadayadayada -ljpeg
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Nov 2007
    Posts
    33
    You're right.

    Thanks!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. In over my head
    By Shelnutt2 in forum C Programming
    Replies: 1
    Last Post: 07-08-2008, 06:54 PM
  2. Undefined Reference Compiling Error
    By AlakaAlaki in forum C++ Programming
    Replies: 1
    Last Post: 06-27-2008, 11:45 AM
  3. Compiling Tutorial program with Dev-c++
    By h3ro in forum C++ Programming
    Replies: 15
    Last Post: 10-24-2006, 03:02 AM
  4. compiler problem
    By sofarsoclose in forum C Programming
    Replies: 3
    Last Post: 07-10-2003, 11:39 AM
  5. qt help
    By Unregistered in forum Linux Programming
    Replies: 1
    Last Post: 04-20-2002, 09:51 AM