Installing igraph (0.7.1) in Visual Studio 2013

I have installed igraph (0.7.1) in Visual Studio 2013. The following are some errors during the installation and how to fix it.

– Error C2065: ‘prpack_igraph_graph’ : undeclared identifier.

Solution: Adding a compiler option. Open Project menu -> Properties -> C/C++ -> Command Line. In Additional options, add the following option: /DPRPACK_IGRAPH_SUPPORT=1

When compiling igraphtest:

– Error LNK1181: cannot open input file ‘igraph.lib’. Solution: Adding a path to the directory containing ‘igraph.lib’. Open Project -> Properties -> VC++ Directory -> Library Directory -> Edit. Add new path which points to the Release directory in the igraph directory.

– error LNK2005: _free already defined in LIBCMTD.lib(dbgfree.obj)
 Project -> Properties -> Configuration Properties -> C/C++ -> Code generation.
Set Runtime Library = Multi-threaded (/MT)

One thought on “Installing igraph (0.7.1) in Visual Studio 2013

  1. Compile the first igraph project in Visual Studio 2013 | yishilin14

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s