How can I configure the enviroment in VS2010 if I want to build the programe? RRS feed

  • Question

  • In SoraSDK2.0, it have a programe "umx_sample.cpp" in \SoraSDK2.0\src\Samples\AppExt. I want to build it in VS2010, but it have some errors, like this:

    1>main.obj : error LNK2019: unresoveld external symbol  _SoraUReleaseBuffer, "void __cdecl TxRoutine(char *)" (?TxRoutine@@YAXPAD@Z) 

    How I can configure the enviromet so that the programe can be built corectly? Thanks.

    Monday, November 18, 2013 2:29 PM

All replies

  • You should build with calling convention of "__stdcall" instead of "__cdecl".

    You should carefully configure the compiler and linker switchers. They should be same as WDK compiler and linker switchers, which can be found in WDK build log.

    • Proposed as answer by Qi LuoEditor Thursday, November 21, 2013 12:29 PM
    Thursday, November 21, 2013 12:28 PM