RAD Studio
ContentsIndex
PreviousUpNext
W8086: Incorrect use of #pragma alias "aliasName"="substituteName" (C++)

The directive #pragma alias is used to tell the linker that two identifier names are equivalent. You must put the two names in quotes. 

You will receive this warning if you don't use pragma alias correctly. For example, the following two lines both generate this warning:

#pragma alias foo=bar

 

#pragma alias "foo" = bar

See the “#pragma alias” reference below for information on this pragma's usage.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!