"_FILE_AND_LINE_ is not defined in this scope" (compiling RakNet NAT examples in OS X)

Posted by Michael F on Stack Overflow See other posts from Stack Overflow or by Michael F
Published on 2010-06-13T15:53:12Z Indexed on 2010/06/13 16:02 UTC
Read the original article Hit count: 248

Filed under:
|

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.

© Stack Overflow or respective owner

Related posts about beginner

Related posts about xcode