BasicApp fails to build; Linker error (Win7, VS2017)


#1

Hi everyone, newbie here.

I’ve downloaded the latest packaged release for Cinder and I tried building the BasicApp to see if everything was set up correctly. Unfortunately I get a linker error: LNK1104; cannot open file cinder-v140_d.lib. I did try following the VS help link, but I don’t think any of the issues listed there are what’s causing the problem. Here’s a link to the help page.

I did try adding

cinder_0.9.0_vc2013\lib\msw\x86

to my library path in VS preferences but no dice. :\

As title says, I’m on Windows 7 using Visual Studio 2017. Thanks for any insight!


#2

Hi,

the packaged release for Cinder only supports Visual Studio 2013, or to be more precise: toolset v120. It is recommended that you install Visual Studio 2013 to obtain that version of the toolset (there’s no other way to get it). Afterwards, you can keep using Visual Studio 2017 as your IDE of choice, but do not upgrade the Cinder project or your own project to toolset v140.

However, Cinder should support toolset v140 without any modifications, but you’ll need to compile it yourself. To do that, open the cinder.vcxproj file, upgrade it to toolset v140 when Visual Studio asks you about it and compile both the Debug and Release targets. The cinder-v140_d.lib file should then appear in the correct lib folder.

See also this long explanation.

-Paul

P.S. let us know if you have more questions.