How to correctly setup perforce with a Unreal Project that uses C++ Code

Could you post your full log file to this thread so we can help diagnose your problem faster? When you try to submit the files and fail as above, close the editor and post the log you will find in GameName/Saved/Logs.