why are my textures not recognised in emulation mode?

I’v been running some code using textures and want to run it in emu mode, but when I compile with -deviceemu I get the compile time message

error : identifier TEXTURENAME is unidentified?

I’m sure I have compiled with textures in emu mode before but can’t understand why I am getting these error messages now.

Did you really miss out on the definition?
Why aren’t you using gpuocelot?