"_FILE_AND_LINE_ is not defined in this scope" (compiling RakNet NAT examples in OS X)
- by Michael F
Hello!
I'm working on a RakNet-based project (using 3.8 on OS X 10.6), and I'm trying to work through the various examples that demonstrate the parts of RakNet I want to use.
For the "NatCompleteClient" example, I've imported the source into a command-line project in XCode, along with the UPNP dependency. At compile time I've had a few errors in the UPNP section, though, and I can't find any guidance on this.
In UPNPPortForwarder.mm, there are 7 lines that use _FILE_AND_LINE_, and the compiler is not happy; for example on line 232:
foundInterfaces.Deallocate(r1,_FILE_AND_LINE_);
causes:
UPNPPortForwarder.mm:232: error: '_FILE_AND_LINE_' was not declared in this scope
Can anyone tell me what this is all about? That variable doesn't seem to get talked about very often... or Google doesn't like to find it.