Suddenly compiling any project with C++ in it gives me undeclared identifier errors [closed]
It all started with a blank function in C++ giving me this weird error saying there was an unidentified symbol. It was blank and I didn't need it so I deleted that code eventually, no big deal. Then it started happening with everything new. After trying for over an hour I restarted my computer thinking it might be some weird VS glitch, but it still happened. Now it is even happening on old projects that had zero issues. It keeps giving me declared identifier errors. Here are the errors it gave me with a different file http://i.imgur.com/AVrbdTS.png?1
Should I reinstall VS2013 and/or Unreal 4.9?
EDIT: I updated my VS2013 and tried to clean rebuild the files. Now it says (or maybe it did before and I somehow missed it) that it cannot open up the ToggleForBP.generated.h file. I check to make sure it wasn't set on read only and it isn't. I am very confused right now.
My .h // Fill out your copyright notice in the Description page of Project Settings.
The errors I get from VS2013
I realized this might be a general C++ error instead of Unreal Engine based and sure enough it was. Turns out I needed to add AToggleForBP:: to my function because without it the compiler thought I was calling a global function!
answered Nov 07 '15 at 04:10 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here