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"

Compilation Error

Hi everyone!

I have a plugin that is working in one project, say Project A, i.e. i am able to compile and run the project with the plugin loaded. When compiling in VS, I will see the following in the output log.

 2>  Module.MyPlugin.cpp
 2>  Module.MyPlugin.gen.cpp

However, in another project, say Project B, where i copied my plugin into, I get the following when compiling in VS.

 2>  Module.MyPlugin.cpp
 2>  MyGame.cpp
 2>  MyPlugin.generated.2.cpp
 2>  MyPlugin.generated.1.cpp
 2>  MyGameGameModeBase.cpp
 2>  MyGame.generated.cpp

Right under these lines I will see

 error C2275: 'FString': illegal use of this type as an expression
 error C2065: 'Z_Param_Out_IdsToSpawn': undeclared identifier
 error C3861: 'P_GET_TMAP_REF': identifier not found

These errors are pointing to the line where GENERATED_BODY() of the class that has the error.

The only issue that I could think of was that project A is using 4.17 while project B is using 4.16, but after switching engine version for project B, the same error shows up. Does anyone have any idea what could be the issue here?

Product Version: UE 4.16
more ▼

asked Oct 20 '17 at 07:41 AM in C++ Programming

avatar image

21 6 10 20

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

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