Make a class function definition in another .cpp file
I often make a class with many functions/methods inside. The problem is, even if class definition in header file can be relatively small (<100 lines), associated .cpp file can be huge (>500 lines). In normal projects I often split function definitions into many smaller .cpp files. Apparently, I can't do it in Unreal Engine cpp projects. I guess the problem is that I need to convince somehow Makefile (Build.cs file to be specific) that it needs also to build added another .cpp file. How can I do that?
Now - when I make
I get the following error:
Solution - creating another .cpp file in VS causes creation in Intermediate folder instead of Source/MyProject folder. I had to manually move created item into Source/MyProject file, maybe also to make some small edit in Build.cs file. Now I am able to define functions outside main cpp file.
answered Feb 02 '17 at 12:53 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here