Relocation error: undefined symbol gnome_print_job_set_file



Hi All,

I am writing a program which calls the gnomeprintdialog and passes a
gnomeprintjob to it which contains the path of the ps file. Here is
the sample code that I have written:

#define GNOME_PRINT_UNSTABLE_API

#include <libgnomeprintui/gnome-print-dialog.h> //for GNOME Print Dialog
#include <gtk/gtk.h> //for GTK Widget and other related stuff
#include <libgnomeprint/gnome-print-job.h>
#include <libgnomeprint/gnome-print-config.h>
.
.
.
main()
{
.
.
      GnomePrintJob *printJob;   
       printJob = gnome_print_job_new(NULL);
      gnome_print_job_set_file(printJob,(gchar*)"/home/mohit/Tools/scoresheet.ps");
	.
......
}

On Compiling I don't get any error, but on running I get the following error:

[mohit india-25-27 GnomePrintDialog]$ ./a.out
./a.out: relocation error: ./a.out: undefined symbol: gnome_print_job_set_file

Both my libgnomeprint and libgnomeprintui are present in  /usr/local/lib....
Moreover, when i remove the call to gnome_print_unstable_api(...) i
don't get any error.

What is wrong? Am I missing something?

Thanks,
Mohit



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]