# Std::type\_info fails to build in development configuration but works in development\_editor

**URL:** <https://forums.unrealengine.com/t/std-type-info-fails-to-build-in-development-configuration-but-works-in-development-editor/318982>\
**Category:** C++\
**Tags:** unreal-engine, UE4, CPP, question\
**Created:** [May 18, 2015, 8:13am UTC](https://forums.unrealengine.com/t/std-type-info-fails-to-build-in-development-configuration-but-works-in-development-editor/318982 "2015-05-18T08:13:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_73b4c5d7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_73b4c5d7](https://forums.unrealengine.com/u/anonymous_user_73b4c5d7)\
**Post date:** [May 18, 2015, 8:13am UTC](https://forums.unrealengine.com/t/std-type-info-fails-to-build-in-development-configuration-but-works-in-development-editor/318982/1 "2015-05-18T08:13:59Z")

</div>

I have a Crypto++ linked as a static lib, when building in “development editor” configuration everything build and work fine, but when I switch into “development” only configuration I got a bunch of the following error at build time:

…includes\cryptlib.h(234): error C2039: ‘type\_info’ : is not a member of ‘std’

I’m currently out of option, any help on this issue would be appreciated.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_73b4c5d7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_73b4c5d7](https://forums.unrealengine.com/u/anonymous_user_73b4c5d7)\
**Post date:** [May 18, 2015, 7:27pm UTC](https://forums.unrealengine.com/t/std-type-info-fails-to-build-in-development-configuration-but-works-in-development-editor/318982/2 "2015-05-18T19:27:03Z")

</div>

Here is the catch, in visual studio the std::type\_info class seems to be declared outside of the std namespace [c++ - Why is type\_info declared outside namespace std? - Stack Overflow](http://stackoverflow.com/questions/1687860/why-is-type-info-declared-outside-namespace-std) , so we need to redefine it inside std :

// at the top of the file

#ifdef WIN32

#pragma warning( push )  
#pragma warning( disable: 4530 )

namespace std{  
typedef type\_info type\_info;  
}

// other includes here…

#endif

// code here…

// And at the end of the code file  
#ifdef WIN32

#pragma warning( pop )

#endif

and I got no idea why this is not happening in “development editor” configuration build.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_73b4c5d7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_73b4c5d7](https://forums.unrealengine.com/u/anonymous_user_73b4c5d7)\
**Post date:** [July 20, 2016, 7:55pm UTC](https://forums.unrealengine.com/t/std-type-info-fails-to-build-in-development-configuration-but-works-in-development-editor/318982/3 "2016-07-20T19:55:09Z")

</div>

Hi [DavidNSilva](https://answers.unrealengine.com/users/21128/davidnsilva.html), to answer your question as in which file we need to redefine the type\_info class, it depends on where you are including the crypto++ lib, in my case it was into the cpp code def of my custom crypto code implementation, for example in Private/ModuleX/CryptoImplX.cpp, hope this answer your question.

---

<div class="post-metadata">

**Author:** ![DavidNSilva](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DavidNSilva](https://forums.unrealengine.com/u/DavidNSilva)\
**Post date:** [July 21, 2016, 6:11pm UTC](https://forums.unrealengine.com/t/std-type-info-fails-to-build-in-development-configuration-but-works-in-development-editor/318982/4 "2016-07-21T18:11:38Z")

</div>

Oh, I actually ended up editing type\_info itself from the std libraries in visual studio and it seems to have worked. Yes I am trying to ship a project with cryptoPP in it. Thanks for answering, I had removed my previous comment as I had solved it somehow. I’ll take a look at that file as I felt what I did was a bit “wrong”. Thanks again for helping out

edit: “\<” not appearing

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [July 21, 2016, 6:23pm UTC](https://forums.unrealengine.com/t/std-type-info-fails-to-build-in-development-configuration-but-works-in-development-editor/318982/5 "2016-07-21T18:23:20Z")

</div>

You are aware that UE4 provides some encryption APIs wrapped?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_73b4c5d7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_73b4c5d7](https://forums.unrealengine.com/u/anonymous_user_73b4c5d7)\
**Post date:** [July 21, 2016, 7:20pm UTC](https://forums.unrealengine.com/t/std-type-info-fails-to-build-in-development-configuration-but-works-in-development-editor/318982/6 "2016-07-21T19:20:21Z")

</div>

Yeah, but I wanted to use the GCM-AES cipher mode and it wasn’t available back then, don’t know if it’s still the case?
