Linker error on Windows

581 views
Skip to first unread message

Shadi Khalek

unread,
Oct 21, 2011, 10:52:33 PM10/21/11
to Chromium-dev
Hi,

I am trying to build chromium on windows 7 for the first time,
following instructions (http://www.chromium.org/developers/how-tos/
build-instructions-windows#TOC-Troubleshooting), but can't fix these
linker errors:
...
293>default_plugin.lib(install_dialog.obj) : error LNK2001: unresolved
external symbol "void * __stdcall ATL::__AllocStdCallThunk(void)" (?
__AllocStdCallThunk@ATL@@YGPAXXZ)
293>browser.lib(extension_view.obj) : error LNK2019: unresolved
external symbol "void * __stdcall ATL::__AllocStdCallThunk(void)" (?
__AllocStdCallThunk@ATL@@YGPAXXZ) referenced in function "public:
static void * __cdecl ATL::_stdcallthunk::operator new(unsigned
int)" (??2_stdcallthunk@ATL@@SAPAXI@Z)
293>browser.lib(omnibox_view_win.obj) : error LNK2001: unresolved
external symbol "void * __stdcall ATL::__AllocStdCallThunk(void)" (?
__AllocStdCallThunk@ATL@@YGPAXXZ)
293>browser.lib(balloon_view_host.obj) : error LNK2001: unresolved
external symbol "void * __stdcall ATL::__AllocStdCallThunk(void)" (?
__AllocStdCallThunk@ATL@@YGPAXXZ)
293>content_browser.lib(render_widget_host_view_win.obj) : error
LNK2001: unresolved external symbol "void * __stdcall
ATL::__AllocStdCallThunk(void)" (?__AllocStdCallThunk@ATL@@YGPAXXZ)
293>browser.lib(omnibox_view_win.obj) : error LNK2019: unresolved
external symbol "void __stdcall ATL::__FreeStdCallThunk(void *)" (?
__FreeStdCallThunk@ATL@@YGXPAX@Z) referenced in function "public:
static void __cdecl ATL::_stdcallthunk::operator delete(void *)" (??
3_stdcallthunk@ATL@@SAXPAX@Z)
293>content_browser.lib(render_widget_host_view_win.obj) : error
LNK2001: unresolved external symbol "void __stdcall
ATL::__FreeStdCallThunk(void *)" (?__FreeStdCallThunk@ATL@@YGXPAX@Z)
293>default_plugin.lib(install_dialog.obj) : error LNK2001: unresolved
external symbol "void __stdcall ATL::__FreeStdCallThunk(void *)" (?
__FreeStdCallThunk@ATL@@YGXPAX@Z)
293>..\build\Debug\chrome.dll : fatal error LNK1120: 2 unresolved
externals

I have full logs if more info is helpful. The errors appear while
building views.dll and chrome.dll

I am running VS 2008 professional on windows 7 64bit, and I installed
all required patches and software recommended in the instructions (and
I did all of that twice, except for re-installing VS).

Any help on solving these linker problems?

Thanks!

Marshall Greenblatt

unread,
Oct 21, 2011, 11:28:53 PM10/21/11
to sh...@chromium.org, Chromium-dev
I've seen these errors with Express versions but not Professional. Linking against atlthunk.lib usually fixes it with Express.

Regards,
Marshall

> --
> Chromium Developers mailing list: chromi...@chromium.org
> View archives, change email options, or unsubscribe:
> http://groups.google.com/a/chromium.org/group/chromium-dev

Carlos Pizano

unread,
Oct 22, 2011, 10:57:35 PM10/22/11
to Chromium-dev, Marshall Greenblatt, sh...@chromium.org
It looks as if the ATL lib files are missing. Try to build any ATL
sample or a test project made by the ATL wizard.

Shadi Khalek

unread,
Oct 29, 2011, 11:32:43 PM10/29/11
to Carlos Pizano, Chromium-dev, Marshall Greenblatt, sh...@chromium.org
Just for a follow up,

I ran All programs -> Windows Driver Kits -> WDK # -> Build Envs -> Windows 7 -> x64 Free Build Environment

The ATL libs files were installed, I had to add to chrome_dll properties-> Linker -> Additional Library Directories the path "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\atlmfc\lib" 

This was the last change that made my build successful, I tried using static link to ATL but that didn't succeed (even though that modification fixed my wizard ATL project build).

--Shadi

On Sun, Oct 23, 2011 at 10:11 AM, Shadi Khalek <sh...@google.com> wrote:
Thanks for the replies.

Carlos, you are right, it seems I don't have the ATL lib files because a test ATL project gave the same errors. 

However, I checked the WDK installation and it was successfully installed (selecting all its components). 

Any idea how to troubleshoot this? 

Thanks,
Shadi
Reply all
Reply to author
Forward
0 new messages