Windows Building and #pragma comment( lib "xxx" );

I am in the process of upgrading to graphviz 2.30.1 and am having issues building my windows based graphviz lib (I use the layout engine and not much else).

There are a bunch of #pragma comment( lib, "xxx") statements which are insisting on including things that are not needed (expat, zlib and certain graphviz libraries).

Now I would like to "tidy" them up and have various choices:

1. Wrap them generically in an additional #ifdef AUTOINCLUDE_LIBS_ON_WINDOWS
2. Move them into seperate c files which can be optionally included in the build process.

Recent comments

Syndicate content