Question

Using the tutorial of Compiling GIMP I have compiled GIMP, GEGL, Babl in windows. i had some errors, but those were on GIMP. i am not concerned about GIMP right now. i just want to use the GEGL libraries to create some APIs in visual studio and run them. Now, my question is how to configure the Visual Studio for this. what changes should i make in the "project property"? what should i add in the "include directory", Library Directory? i just want to run a simple code, gegl initialization...

#include <gegl.h>
int main(int argc, char **argv)
{
gegl_init (&argc, &argv);
    // other GEGL code
gegl_exit ();
}
Was it helpful?

Solution

Put the directory where the header files are located into the Additional Include Directories of the C/C++ section.

Put the directories where the lib files are in the Additional Library Directories of the Linker/General section.

Put the names of the lib files in the Additional Dependency blank of the Linker/Input section.

I don't know this particular library, but if it has dlls, you'll need to copy those into the directory with your .exe.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top