[Dev-C++] Linker errors related to library setup?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
From: Benny S. <ich...@pa...> - 2009-03-12 04:48:21
|
I am trying to run the sample program "photographer.c" (available at http://libexif.cvs.sourceforge.net/viewvc/libexif/libexif/contrib/examples/) in Dev-Cpp. I have downloaded all of the libexif library files (exif-data.h, exif-data.c, et. al..) into a /libexif subdirectory of the "include" subdirectory of Dev-Cpp: C:/Dev-Cpp/include/libexif Here is the first few lines of the program "photographer.c": ********************************************************************* /* * libexif example program to display the contents of a number of specific * EXIF and MakerNote tags. The tags selected are those that may aid in * identification of the photographer who took the image. * * Placed into the public domain by Dan Fandrich */ #include <stdio.h> #include <string.h> #include <libexif/exif-data.h> Etc.. When I compile this program, I get a set of linker errors, as follows: [linker error] undefined reference to 'exif_content_get_entry' [linker error] undefined reference to 'exif_entry_get_value' [linker error] undefined reference to 'exif_mnote_data_count' . .. [linker error] undefined reference to 'exif_data_new_from_file' There is a linker error of this type for each function that I am calling from the 'libexif' library of functions. Is there something I have to do to the library files (each is written in pure C) in order that they will be seen by the linker? I have tried moving the \libexif directory to various locations within the Dev-Cpp directory, but that does nothing. Thanks, ewoozle |