Newbie question ...

This is a discussion on Newbie question ... within the C++ Programming forums, part of the General Programming Boards category; Good Day All, I have a couple of general questions regarding programming with C++ in MSVC6 on winXP. How does ...

  1. #1
    Registered User
    Join Date
    Oct 2005
    Location
    Ottawa
    Posts
    18

    Newbie question ...

    Good Day All,
    I have a couple of general questions regarding programming with C++ in MSVC6 on winXP.

    How does one check to see what libs the compiler links to when compiling/building a program?

    I am attempting to write some code that uses the gd library (GraphicsDraw from www.boutell.com/gd). I have downloaded the precompiled *.dll and placed it in my application directory. I am assuming that it works because I can compile/build example code. The example code creates a .png image. When I attempt to modify the code to produce a jpeg I get the following error msg :

    simplegd.obj : error LNK2001: unresolved external symbol _gdImageCreateFromJpeg

    does this mean Im not linking to the jpeg lib? How can I verfiy/ make proper adjustments?

    Any suggestions/pointers/tips etc would be greatly welcome!

    Many Thanks

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >How does one check to see what libs the compiler links to when compiling/building a program?
    Under project properties you can check the list of libraries that are linked with.

    >does this mean Im not linking to the jpeg lib?
    That would be my first guess.
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Stupid Newbie question
    By TimL in forum C++ Programming
    Replies: 4
    Last Post: 07-22-2008, 04:43 AM
  2. C prog newbie question
    By Draginzuzu in forum C Programming
    Replies: 1
    Last Post: 02-03-2003, 05:45 PM
  3. a stupid question from a newbie
    By newcomer in forum C++ Programming
    Replies: 4
    Last Post: 01-11-2003, 03:38 PM
  4. confusion with integers (newbie question)
    By imortal in forum C Programming
    Replies: 7
    Last Post: 12-06-2002, 03:09 PM
  5. newbie class templates question
    By daysleeper in forum C++ Programming
    Replies: 2
    Last Post: 09-18-2001, 09:50 AM

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