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"

C++ Classes not included automatically or generated

I seem to be having a problem getting the compiler pipeline to work properly.

I have been analyzing the "StrategyGame" sample project and attempting to take the classes and use it in my own project. However I seem to be having a significant amount of problems.

  1. Why are my classes not being generated and placed in some sort of generated type header as seen in the example? The StrategyGame example in "StrategyGame.h" includes #include "StrategyGameClasses.h" which seems to automatically generate and include all header files.

By doing this in my own project, it generates a blank file.

You can see in my project here that the classes can't be found: https://www.dropbox.com/s/ep9whdc0le7pfqu/Question1.jpg

In the example project, it seems to generate this file, which I can't seem to do in mine. https://www.dropbox.com/s/e7a6k46vytlvvbr/Question2.jpg

Product Version: Not Selected
Tags:
more ▼

asked Mar 31 '14 at 09:59 PM in C++ Programming

avatar image

General1337
16 3 4 9

avatar image phoboz Apr 01 '14 at 03:37 AM

Did you add those classes to your project manually or via File->Add code to project?

avatar image General1337 Apr 01 '14 at 04:30 AM

I attempted both cases, in different scenarios. I have tried with a blank project and adding codes through File->Add Code. It's worth mentioning that UE seems to automatically #include the header file in the cpp file instead of omitting it completely and leaving it to be referenced later on from the generated header file.

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

0 answers: sort voted first
Be the first one to answer this question
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