# Problems with compiling Cinder

**URL:** <https://discourse.libcinder.org/t/problems-with-compiling-cinder/1869>\
**Category:** Using Cinder\
**Created:** [September 2, 2021, 9:13pm UTC](https://discourse.libcinder.org/t/problems-with-compiling-cinder/1869 "2021-09-02T21:13:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![supagameboy64](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@supagameboy64](https://discourse.libcinder.org/u/supagameboy64)\
**Post date:** [September 2, 2021, 9:13pm UTC](https://discourse.libcinder.org/t/problems-with-compiling-cinder/1869/1 "2021-09-02T21:13:42Z")

</div>

When I try to run a cinder sample(in this case CubeMapping(I’ve tried other samples)), I get a lot of errors.  
I just expected everything to work once I opened it up and compiled it; alas it didn’t ☹

| Severity | Code | Description | Project | File | Line | Suppression State |
| --- | --- | --- | --- | --- | --- | --- |
| Error (active) | E0276 | name followed by ‘::’ must be a class or namespace name | CubeMapping | C:\Users\Abdul\Documents\Visual Studio 2019\Projects\Cinder\cinder\_0.9.2\_vc2015\include\cinder\app\AppBase.h | 364 | |

And apart from the samples I created my own project:  
#include “cinder/app/App.h”  
#include “cinder/app/RendererGl.h”  
#include “cinder/gl/gl.h”

using namespace ci;  
using namespace ci::app;

class BasicApp : public App {  
public:  
void draw() override;  
};

void BasicApp::draw()  
{  
gl::clear();  
}

CINDER\_APP(BasicApp, RendererGl)

just a short example from the cinder guides.

But I get this same error almost 100 times:

| Severity | Code | Description | Project | File | Line | Suppression State |
| --- | --- | --- | --- | --- | --- | --- |
| Error | LNK2038 | mismatch detected for ‘RuntimeLibrary’: value ‘MTd\_StaticDebug’ doesn’t match value ‘MDd\_DynamicDebug’ in main.obj | cinderTest | C:\Users\Abdul\Documents\Visual Studio 2019\Projects\cinderTest\cinder.lib(Window.obj) | 1 | |

another error I get is:  
LNK2005 “public: \_\_thiscall std::locale:🆔:id(unsigned int)” (??0id@locale@std@@QAE@I@Z) already defined in cinder.lib(Window.obj) cinderTest C:\Users\Abdul\Documents\Visual Studio 2019\Projects\cinderTest\msvcprtd.lib(MSVCP140D.dll) 1

I included …\cinder\_0.9.2\_vc2015\include  
and added lib …\cinder\_0.9.2\_vc2015\lib\msw\x86\Debug\v140  
I specified cinder. lib as linker input.

So what is causing this mismatch and naming collusions?  
And why aren’t the samples just working straight out of the box?  
Am I maybe including/linking the wrong files? or might there be something wrong with my setup?

I hope that someone has any ideas so that I can start trying out this library.  
Although it has been a hassle and cumbersome thus far Cinder really looks awesome, so I’d love to give it a try.

I really hope someone could help me with this.  
thanks.

---

<div class="post-metadata">

**Author:** ![lithium](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/lithium/32/38_2.png) [@lithium](https://discourse.libcinder.org/u/lithium)\
**Post date:** [September 2, 2021, 9:49pm UTC](https://discourse.libcinder.org/t/problems-with-compiling-cinder/1869/2 "2021-09-02T21:49:34Z")

</div>

[https://libcinder.org/docs/guides/cmake/cmake.html](https://libcinder.org/docs/guides/cmake/cmake.html)
