Hello. We’re developing a game.
Everything was going fine.
But weird situation happened.
It was from yesterday.
There was no compile error.
But when total size of source codes including comments exceeds some limit, then I can see compile errors on Engine codes.
It seems PCH feature is not working with some condition like total size of source codes.
This situation happens to other 4 co-workers too.
I modied XXX.Build.cs with options which is related to PCH, but it didn’t work.
Could you give me some advise?
I would appreciate for your reply.
Hey
What was the total size of your source code when the compile errors started to appear? Additionally, what are the exact errors you’re getting? Do the compile errors go away if you remove code/comments from your source?
Cheers
Hi . It's not a big project yet. And I think I solved this problem with some doubt about dummy comments. We inhert TableViewBase, and implemnt custom logic for our own TableView. Today I made a dummy project, When I added #include "Components/TableViewBase.h" *just include* and got a same error. It's a same error as yesterday. I think the reason is 'TableViewBase'. For Unreal Engine classes, each class header file has 'include' statement for it's parent class, But 'TableViewBase' didn't. It's parent class is UWidget, but there isn't #include "Widget.h" in TableViewBase.h So, when I use #include "Components/TableViewBase.h", I added #include "Components/Widget.h" before this. And everything is fine. (If there is #include "Widget.h" in TableViewBase.h, it would be better) About your additional question, It depends on the situation. When there are compile errors, if I add bunch of dummy comments, errors disappear. When there are compile errors even if there are bunch of dummy comments, if I remove that bunch of dummy comments, errors disappear. Even if there are no errors at night, but sometimes I can see errors in the next morning. :(
1>D:\Program Files\Epic Games\4.8\Engine\Source\Runtime\UMG\Public\Components/TableViewBase.h(10): error C2504: 'UWidget' : base class undefined 1>D:\Program Files\Epic Games\4.8\Engine\Source\Runtime\UMG\Public\Components/TableViewBase.h(11): error C3668: 'UTableViewBase::_getUObject' : method with override specifier 'override' did not override any base class methods 1>D:\Program Files\Epic Games\4.8\Engine\Source\Runtime\UMG\Public\Components/TableViewBase.h(11): error C2440: 'return' : cannot convert from 'UTableViewBase *' to 'UObject *' 1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast 1>d:\work\pg\apps\dev\client\source\prototype\ui\control\LnTableView.h(55): error C3668: 'ULnTableView::GetEditorIcon' : method with override specifier 'override' did not override any base class methods 1>d:\work\pg\apps\dev\client\source\prototype\ui\control\LnTableView.h(56): error C3668: 'ULnTableView::GetPaletteCategory' : method with override specifier 'override' did not override any base class methods 1>d:\work\pg\apps\dev\client\source\prototype\ui\control\LnTableView.h(60): error C3668: 'ULnTableView::RebuildWidget' : method with override specifier 'override' did not override any base class methods 1>d:\work\pg\apps\dev\client\source\prototype\ui\control\LnTableView.h(21): error C2440: 'return' : cannot convert from 'ULnTableView *' to 'UObject *' 1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Hey
I tested creating a class that used TableViewBase and received some of the same compile errors. I’m not sure why using this class in code is causing issue however I have submitted a bug report (UE-17681) to investigate the issue.