Re: [Gimp-developer] plug-in compilation problem

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

 



Hi,

Cindy Huyser <chuyser@xxxxxx> writes:

> Now, I need to link an additional library into my plug-in. I built a
> makefile, setting CFLAGS to the include directories called by gimptool
> and LDFLAGS to gimptool's library calls (I did not yet add in the
> desired additial library).  When I ran the makefile against my
> plug-in, I received the following error:
> 
> /usr/lib/crt1.o: In function `_start':
> /usr/lib/crt1.o(.text+0x18): undefined reference to `main'
> /usr/lib/libgimp.so: undefined reference to `PLUG_IN_INFO'
> collect2: ld returned 1 exit status

looks as if your plug-in doesn't specify PLUG_IN_INFO. Every plug-in
needs to setup a global array of function pointers like this:

GimpPlugInInfo PLUG_IN_INFO =
{
  NULL,  /* init_proc  */
  NULL,  /* quit_proc  */
  query, /* query_proc */
  run    /* run_proc   */
};


Salut, Sven


[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux