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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Adding additional includes causes errors

Adding any additional includes to any class causes the entire class, and thus, intellisense, to break entirely ONLY in visual studio. The project still compiles fine, assuming the code is valid. I have used some google-fu to look for answers, but no solutions to this have been able to fix the problem, and it is impacting productivity because, well, no intellisense.

I can provide the code, if needed.

EDIT: If anyone else has this problem, VISUAL ASSIST X seems to fix it. It also just all around improves working with C++.

Product Version: UE 4.12
more ▼

asked Jul 18 '16 at 06:40 PM in C++ Programming

avatar image

16 3 4 7

avatar image Digi Labs Dan Jul 18 '16 at 07:59 PM

What is the error message from VS's output pane? What additional includes are you adding? What are your current #includes, in order, and where are you putting the new #include?

avatar image Warlahamaran Jul 18 '16 at 09:19 PM

current includes are the default ones that come with a file generated by Unreal, the additional include is of a component and an actor classes that I have, the error is "This declaration has not storage or type specifier" (something along those lines, i dont have access to my computer at the moment) on the UCLASS macro. The rest of the errors are too many to list here. the #includes are before the "[classname].generated.h".

avatar image Digi Labs Dan Jul 18 '16 at 09:58 PM

With compile-time errors, usually the first one is the only important one. Does the header file you're including possibly #include the header file you're trying to include it from?

avatar image Warlahamaran Jul 19 '16 at 12:16 AM

Nope. However, there are no compile-time errors, it compiles fine in fact. The issue comes with the fact that it completely destroys intellisense, which makes it extremely hard to work with

I'll try to get a screenshot for a better explanation once I have access to my project.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

This is just a cosmetic issue, and you can safely ignore it, and in my experience, it often goes away on its own. Apparently, changing the build config can resolve this. Something else which might work is to right click your project in the Solution Explorer and choose rescan solution.

more ▼

answered Jul 19 '16 at 12:24 AM

avatar image

Digi Labs Dan
566 16 12 34

avatar image Warlahamaran Jul 19 '16 at 01:46 AM

The build config didn't help, though I suppose if it's only cosmetic I can live with it. It's just annoying that intellisense doesn't work because of it.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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