(BUG) unrealheadertool bug when including a file twice
Hello, i have a strange bug in Visual Studio. I tried to start a little mathlibary with static functions. But it didnt work out from beginning. First it told me it couldnt find the implentation (source mising or stuff(ais if u have a func-dekleration but no def)). Then after trying around, and do just little things like renaming a class/filename i got an error that the scmath.generated. couldnt get accessed or once it got included twice! i had pragma once in it!
Actually there is a even stranger error. the parent class of the class where i use a static fnction from scmath.h got this error:
when i remove the class out of my project it compiles like a charm :)(well i have to clean the projectfiles like interdimate and stuff first ...) srly no idea whats the problem causing here....
I got it solved out. I have some juntionfolders in my source folder, so can use cpp easly on different projects. But from the projectcreation when i was totally new to ue4 i still had included the same files via game.build.cs:
The Problem was that i didnt realize it and that the error showed on weired situations(after i added a new class, an error showed in another class and when i removed it the error was gone).
I wont change the status of the thread, because the staff may want to take a look into it. Because i think it is still a bug. Which might could easly solved by better error handling/output or just by warning the user that the generated.h got included from 2 files. (#pragma once and include_guards didnt work, which they mabe should ?)
answered Jan 07 '18 at 03:42 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here