We help IT Professionals succeed at work.

LNK2019: unresolved external symbol

Ruben1717 used Ask the Experts™
I downloaded the Scite source from
This download includes a .mak file, and it works. I was able to build the program from the mak file, and run it, but I want to be able to build it and use the debugger from the VS2010 IDE.
I created a blank project from the VS2010 IDE, and added all the source files from the download. When I build it, I get the following errors:

SciTEWinBar.obj : error LNK2019: unresolved external symbol __imp__InitCommonControlsEx@4 referenced in function "public: void __thiscall SciTEWin::Creation(void)" (?Creation@SciTEWin@@QAEXXZ)

\scite\rWin32\Debug\SciTe.exe : fatal error LNK1120: 1 unresolved externals
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Freelance programmer / Consultant
Check the project settings, specifically for external dll's at linkage.  You probably need to put the following as a dll for linkage - comctl32.lib

Add a reference to Comctl32.lib
oh didnt see, it was already mentioned.
I downloaded the windows source from your link.
I opened the project files with Visual Studio 2008 and let the conversion wizard do its thing, then I rebuilt all.
It all works for me.

Might I suggest that instead of creating your own project, you just open up their project file in Visual Studio and let the wizard do its thing.


When I open the project with VS2010, and let the wizard do the conversion, I get the LNK1120 and LNK2019 errors.