Can someone help me with the simple plug-in (hello message box)http://developer.gimp.org/writing-a-plug-in/1/index.html? I have also included the Hello.c source code. I encountered the following error. Compiler: Default compiler Building Makefile: "E:\Makefile.win" Executing make... make.exe -f "E:\Makefile.win" SimplePlugin/hello.o gcc.exe -c SimplePlugin/hello.c -o SimplePlugin/hello.o -I"E:/Dev-Cpp/include" -ansi -traditional-cpp -w -fmessage-length=0 SimplePlugin/hello.c:6: error: syntax error before string constant SimplePlugin/hello.c:27: error: syntax error before string constant SimplePlugin/hello.c:39: error: syntax error before '*' token SimplePlugin/hello.c: In function `run': SimplePlugin/hello.c:45: error: syntax error before "values" SimplePlugin/hello.c:46: error: `GimpPDBStatusType' undeclared (first use in this function) SimplePlugin/hello.c:46: error: (Each undeclared identifier is reported only once SimplePlugin/hello.c:46: error: for each function it appears in.) SimplePlugin/hello.c:47: error: `GimpRunMode' undeclared (first use in this function) SimplePlugin/hello.c:50: error: `nreturn_vals' undeclared (first use in this function) SimplePlugin/hello.c:51: error: `return_vals' undeclared (first use in this function) SimplePlugin/hello.c:51: error: `values' undeclared (first use in this function) SimplePlugin/hello.c:53: error: `GIMP_PDB_STATUS' undeclared (first use in this function) SimplePlugin/hello.c:54: error: `status' undeclared (first use in this function) SimplePlugin/hello.c:58: error: `run_mode' undeclared (first use in this function) SimplePlugin/hello.c:58: error: `param' undeclared (first use in this function) SimplePlugin/hello.c:60: error: `GIMP_RUN_NONINTERACTIVE' undeclared (first use in this function) make.exe: *** [SimplePlugin/hello.o] Error 1 Execution terminated Source Code For hello.c include "libgimp/gimp.h" static void query (void) { static GimpParamDef args[] = { { GIMP_PDB_INT32, "run_mode", "Run mode" }, { GIMP_PDB_IMAGE, "image", "Input image" }, { GIMP_PDB_DRAWABLE, "drawable", "Input drawable" } }; gimp_install_procedure ( "plug_in_hello", "Hello, world!", "Displays \"Hello, world!\" in a dialog", "David Neary", "Copyright David Neary", "2004", "/Filters/Misc/_Hello world...", "RGB*, GRAY*", GIMP_PLUGIN, G_N_ELEMENTS (args), 0, args, NULL); } static void run (const gchar *name, gint nparams, const GimpParam *param, gint *nreturn_vals, GimpParam **return_vals) { static GimpParam values[1]; GimpPDBStatusType status = GIMP_PDB_SUCCESS; GimpRunMode run_mode; /* Setting mandatory output values */ *nreturn_vals = 1; *return_vals = values; values[0].type = GIMP_PDB_STATUS; values[0].data.d_status = status; /* Getting run_mode - we won't display a dialog if * we are in NONINTERACTIVE mode */ run_mode = param[0].data.d_int32; if (run_mode != GIMP_RUN_NONINTERACTIVE)g_message("Hello, world!\n"); } -- Yavala ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. _______________________________________________ Gimp-developer mailing list Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer