Boost Adobe gil: undefined reference for jpeg related feature

This is a discussion on Boost Adobe gil: undefined reference for jpeg related feature within the C++ Programming forums, part of the General Programming Boards category; Hi, I'm using g++ on ubuntu 7.04. I'm trying to learn adobe gil, which is a library deal with image ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,749
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  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, 07:54 PM
  2. Undefined Reference Compiling Error
    By AlakaAlaki in forum C++ Programming
    Replies: 1
    Last Post: 06-27-2008, 12:45 PM
  3. Compiling Tutorial program with Dev-c++
    By h3ro in forum C++ Programming
    Replies: 15
    Last Post: 10-24-2006, 04:02 AM
  4. compiler problem
    By sofarsoclose in forum C Programming
    Replies: 3
    Last Post: 07-10-2003, 12:39 PM
  5. qt help
    By Unregistered in forum Linux Programming
    Replies: 1
    Last Post: 04-20-2002, 10:51 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21