x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

#include "networking.h" cannot open file

I'm having a problem with the #include "networking.h", VS says it cannot open the file. When I build the project under Visual Studio Express 2013, it give me a bunch of errors about undefined FIPv4Endpoint. However, compiling in the Unreal Engine interface it works fine. Any idea?? Thank you.

Product Version: UE 4.9
Tags:
more ▼

asked Nov 05 '15 at 04:27 AM in C++ Programming

avatar image

HoneyBadger1
16 1 2 2

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Hi,

You must add "Networking" to your build.cs project.

  PublicDependencyModuleNames.AddRange(new string[] { "Networking", "Some other depends"});

Best regards, Gleb

more ▼

answered Nov 05 '15 at 08:34 AM

avatar image

Gleb.Bulgakov
1.8k 76 19 143

avatar image HoneyBadger1 Nov 05 '15 at 04:14 PM

I'm sorry but I already added Networking and Socket to the PublicDependencyModuleNames. Any more idea??? Thank you

avatar image thyshimrod Jan 28 '16 at 08:57 AM

Do you solve your problem?

avatar image HoneyBadger1 Jan 28 '16 at 04:45 PM

Try this #include "Runtime/Networking/Public/Networking.h" if this work add the Runtime directory to your include path

avatar image dsenter Apr 01 '16 at 08:38 PM

I may or may not be having the same issue, but doing the above fixes that error, but then more pop up for the includes inside of Networking.h - Sockets.h, IPv4SubnetMask.h, SteamEndpoint.h, etc. So VC isn't looking in the right directory somewhere. I haven't figured out where it needs to look or how to add it.

avatar image Appsite GmbH Jul 14 '16 at 01:28 PM

After adding it to the PublicDependencyModuleNames you have to save the project, exit Visual Studio and the rightclick your .uproject file and hit "Generate Visual Studio project files". Then it should work. :)

avatar image TheGreatCabbage Jun 16 '17 at 02:38 PM

Great, thanks. VS will prompt you to reload the project, so you don't technically need to close it :)

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question