Answered by:
error LNK2019: unresolved external symbol SHGetShortcutTarget referenced in function

Question
-
Hi,
I am building windowsCE 2013 application with VS 2013. The application uses SHGetShortcutTarget function in the code.
The file is compiled but getting the following LNK error.
error LNK2019: unresolved external symbol SHGetShortcutTarget referenced in function
coredll.lib file path also specified in the VS 2013 settings. The other functions exported by coredll.lib file are used in the code and they are no LNK errors except LNK for SHGetShortcutTarget function .
Is "SHGetShortcutTarget" function exported?
Could anyone help to resolve this LNK error?
Thanks
Chandu
Tuesday, November 17, 2015 6:00 AM
Answers
-
This is a bug in the WEC2013 SDK Roller. It does not include shellsdk.lib (this is the lib that contains all the SHxxx functions, the documentation is wrongly stating this is in coredll.lib). The way we solve this is that we have a subproject in our OS Design that copies the missing libs and header files to the SDK folders so that when we generate the SDK it will include those missing files.
Are you the OEM? In other words; did you generate the SDK? If yes; follow my instructions. If not; ask your device manufacturer for an updated SDK (you can link this post so they understand the issue).
Good luck,
Michel Verhagen, eMVP
Check out my blog: http://guruce.com/blog
GuruCE
Microsoft Embedded Partner
http://guruce.com
Consultancy, training and development services.- Proposed as answer by Michel VerhagenMVP Wednesday, November 18, 2015 10:00 AM
- Marked as answer by Bruce Eitman Tuesday, July 10, 2018 1:58 PM
Tuesday, November 17, 2015 9:09 AM
All replies
-
This is a bug in the WEC2013 SDK Roller. It does not include shellsdk.lib (this is the lib that contains all the SHxxx functions, the documentation is wrongly stating this is in coredll.lib). The way we solve this is that we have a subproject in our OS Design that copies the missing libs and header files to the SDK folders so that when we generate the SDK it will include those missing files.
Are you the OEM? In other words; did you generate the SDK? If yes; follow my instructions. If not; ask your device manufacturer for an updated SDK (you can link this post so they understand the issue).
Good luck,
Michel Verhagen, eMVP
Check out my blog: http://guruce.com/blog
GuruCE
Microsoft Embedded Partner
http://guruce.com
Consultancy, training and development services.- Proposed as answer by Michel VerhagenMVP Wednesday, November 18, 2015 10:00 AM
- Marked as answer by Bruce Eitman Tuesday, July 10, 2018 1:58 PM
Tuesday, November 17, 2015 9:09 AM -
Hi Chandu Nageswara,
SHGetShortcutTarget() is located @ shellsdk module.
You should build your runtime image with "Shell API" (SYSGEN_SHELLAPI) component, then rebuild your SDK if required.
Best regards, Igor
Tuesday, November 17, 2015 9:15 AM -
Hi,
Thanks for providing information. We are using one of OEM SDK and building the application. I will contact the vendor.
Thanks
Chandu
Wednesday, November 18, 2015 9:43 AM -
Hi,
Thanks for providing the information.
Thanks
Chandu
Wednesday, November 18, 2015 9:43 AM