I found the problem. A variable in the first file to be preprocessed was declared as a nonexistent type, messing up all the variables after it.