Why can't I open include files?
I have written a library that I want to use in my new UE4 project.
So I have added a include and lib folder to the /Engine/Source/ThirdParty/ folder (as described in this forum post UE4 AnswerHub
It all works fine when I generate the solution files there is effectively now a folder called "AWFramework" and it contains the cs build file.
Unfortunately when I try and include any header from my library then I get a compiler error saying that the header cannot be opened.
Now I am usually quite familiar with as to why the header cannot be found but with this unreal build system I am a bit confused.
here my CS build file
I have triple checked that the header files are effectively at the right location and that my paths are correct, but the problem seems to be that if I reference my library header from within my game code, I need to specify something like this
but the inside the library code itself it complains that it can't find the header i.e.
but I can guarantee that as specified in the cs build file public path that I added , the file should be there
UEBuildConfiguration.UEThirdPartyDirectory + "AWThirdParty/AWFramework/libAWFramework/Include" + "Networking/Sockets/ZMQ/AWZMQSocketBase.h"
so how do I make sure that the paths for files referenced from my unreal game are compatible with paths referenced by my library. As far as I know usually the paths are looked up depending on what additional path directories are being added to a project but I can't seem to find any such thing in the UE4 project(in fact I believe that is what
is supposed to do.
Any idea ?
Have you read this tutorial?
Is this what you need?
answered May 03 '14 at 10:12 PM
Hi This topic is a bit old but I had the unresolved link problem and I solve it by compiling the dependancies in 64bits. Maybe your dependancies are 32bitss ?? btw, I am now trying to run my UE4 VC2013 project with a win32 settings (all my dependancies are not 64bits) but I have got a "fatal error C1083: Cannot open include file: 'MyProject21.h': No such file or directory" Does anyone has any new thoughts about that ?
Follow this question
Once you sign in you will be able to subscribe for any updates here