Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

__annotation symbol and other unresolved

Peter_Skvarka
Beginner
598 Views
Hi,

When porting kernel-mode *.sys x64 driver from MS compiler to Intel compiler I metthese unresolved symbols:
error LNK2019: unresolved external symbol __annotation referenced in function ....

When I look into wdm.h (in DDK) there several ASSERTs defines like for example:

#define NT_ASSERT(_exp) \

((!(_exp)) ? \

(__annotation(L"Debug", L"AssertFail", L#_exp), \

DbgRaiseAssertionFailure(), FALSE) : \

TRUE)

But I cannot find nothing more about "__annotation" function in MS documentationor headers, so I assume that it is something built-in compiler.

Hcan I resolve this symbol in Intel Compiler ? Or does support Intel environment some alternative for it ?

Otherunresolved symbols are _byteswap_ushort and _byteswap_ulong. Both are in MS documented like crt functions in intrinsics form.
Does provide Intel compiler environment some alternative for it ?

Thanks !
Peter

0 Kudos
1 Reply
TimP
Honored Contributor III
598 Views
I see suggestions about __annotation at
http://members.ozemail.com.au/~geoffch@ozemail.com.au/samples/programming/msvc/language/predefined/index.html
Likewise, there are suggested standard alternatives to MSVC byteswap macros posted, e.g.
http://www.koders.com/c/fid041BB8F77186B27FA3BB284D4FAC360980717786.aspx
0 Kudos
Reply