Well this is the umpteenth time migrating. It’s always fun but this time it seems something else is going on than normal deprecation and usage changes. Upon compiling my project I get a single error “error : Missing ‘;’ before ‘friend’”. This error occurs during the Unreal Header Tool. When I click it, it takes me to the first file it checks in my project and arbitrarily jumps to a structure I’ve defined in this static class file. Here’s a snippet from within that structure,
friend FArchive& operator<<(FArchive& Ar, F3DARY& V)
{
return Ar << V.row << V.faces << V.numVerts;
}
This code works fine in 4.14. Been using FArchive for awhile now and never had any issues. I also notice that my entire file is littered with intellisense lines, and since this occured during the UHT leads me to believe a header is messed up. When I scroll up to the top of my file I notice the first red line is the files generated.h. The generated header file is mising. I’ve checked in \Intermediate\Build\Win64\ and there is no Ue4Editor folder where the generated header files are usually kept. Don’t these file generate during the “Generate Project Files” option on the project file? If I delete the intermediate folder and retry this option to generate project files I see the intermediate folder is created, but no Ue4Editor folder within it, where the generated header files should be. So now I’m stuck. I’ve been reading about the new IWYU setup and part of me is wondering is this related? I’ve heard it’s optional, do I need to do something to opt out? Or should my project work as it did before without having to IWYU.
Thanks