471,122 Members | 1,023 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,122 software developers and data experts.

error LNK2001: unresolved external symbol "extern "C" ...

Hi! How can I fix this error?

Error 1 error LNK2001: unresolved external symbol "extern "C" long __stdcall
SHFlushClipboard(void)" (?SHFlushClipboard@@$$J10YGJXZ) UnmanagedTest.obj
Basically I am calling the SHFlushClipboard method from "shlobj.h" (Win32)
in a managed c++ app.

~Matt
Feb 24 '07 #1
1 5140
In article <2B**********************************@microsoft.co m>,
=?Utf-8?B?TWF0ZXVzeiBSYWpjYQ==?= <Ma**********@discussions.microsoft.comwrote:
>Error 1 error LNK2001: unresolved external symbol "extern "C" long __stdcall
Basically I am calling the SHFlushClipboard method from "shlobj.h" (Win32)
in a managed c++ app.
According to
http://msdn.microsoft.com/library/de...hclipboard.asp
you need to link against shell32.lib. Poke around in your linker
settings.

Nathan Mates

--
<*Nathan Mates - personal webpage http://www.visi.com/~nathan/
# Programmer at Pandemic Studios -- http://www.pandemicstudios.com/
# NOT speaking for Pandemic Studios. "Care not what the neighbors
# think. What are the facts, and to how many decimal places?" -R.A. Heinlein
Feb 26 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Mark A. Gibbs | last post: by
2 posts views Thread by Pardeep Kadian | last post: by
reply views Thread by =?Utf-8?B?TWF0ZXVzeiBSYWpjYQ==?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.