How to #include vector <>? or other members of the standard library?
Is it possible to #include within the UE4? I know that UE4 have built there own container types for cross platform compatibility but in my scenario my "game" will always be run on windows (and possibly only on one computer).
Ideally I would like to be able to somehow link to the standard library. Is this possible? For example, somehow link to a .lib containing the standard library? Is this even possible? I am fairly new to c++ so forgive me if it sounds like a silly question!
Hi, yes thats the nature, and its is easy, to integrate a .lib in windows for example or another library for another platform, you have to use the Unreal build system, basically you can define your compiles rules, for instance you can use this inside your Build.cs file:
I would like recommend you this wiki: https://wiki.unrealengine.com/Linking_Static_Libraries_Using_The_Build_System
Also if you began with ue, take a look to every wiki in the page. Cheers
I was able to resolve my problem by creating a static library that uses the standard library. You must ensure that you are using Visual Studio 2015 update 3 and the static library is built using release 64x. From there you can follow the Unreal tutorial of linking static libraries to UE4 and it should work fine. Although, it does increase build times considerably.
answered Sep 08 '17 at 05:17 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here