# Linker error in juce\_win32\_native\_code

**URL:** <https://forum.juce.com/t/linker-error-in-juce-win32-native-code/12988>\
**Category:** Windows\
**Created:** [June 14, 2014, 6:19am UTC](https://forum.juce.com/t/linker-error-in-juce-win32-native-code/12988 "2014-06-14T06:19:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![CGTech](https://avatars.discourse-cdn.com/v4/letter/c/85f322/32.png) [@CGTech](https://forum.juce.com/u/CGTech)\
**Post date:** [June 14, 2014, 6:19am UTC](https://forum.juce.com/t/linker-error-in-juce-win32-native-code/12988/1 "2014-06-14T06:19:23Z")

</div>

Hi,

I am using juce 1.53 with visual studio 13 express. I am building JUCE in DLL Debug mode, but it gives me some linker error related to juce\_win32\_nativeCode. I will be very helfull for any help&nbsp;

Folllowing is output of build.

1\>------ Build started: Project: Juce, Configuration: DLL Debug Win32 ------  
1\> &nbsp;juce\_win32\_Network.cpp  
1\>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(1186,5): warning MSB8012: TargetPath(G:\Browser\_Refactoring\REUSABLECOMPONENTSREPO\Trunk\JUCE\juce\_1\_53\Builds\VisualStudio2005\../../bin\Juce.dll) does not match the Linker's OutputFile property value (G:\Browser\_Refactoring\REUSABLECOMPONENTSREPO\Trunk\JUCE\juce\_1\_53\bin\Juce\_Debug\_vs2013.dll). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).  
1\>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(1188,5): warning MSB8012: TargetName(Juce) does not match the Linker's OutputFile property value (Juce\_Debug\_vs2013). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_\_imp\_\_wglCreateContext@4 referenced in function \_\_catch$?messageWndProc@WindowsMessageHelpers@juce@@YGJPAUHWND\_\_@@IIJ@Z$1  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_\_imp\_\_wglDeleteContext@4 referenced in function \_\_catch$?messageWndProc@WindowsMessageHelpers@juce@@YGJPAUHWND\_\_@@IIJ@Z$1  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_\_imp\_\_wglGetCurrentContext@0 referenced in function "public: virtual bool \_\_thiscall juce::WindowedGLContext::isActive(void)const " (?isActive@WindowedGLContext@juce@@UBE\_NXZ)  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_\_imp\_\_wglGetProcAddress@4 referenced in function \_\_catch$?messageWndProc@WindowsMessageHelpers@juce@@YGJPAUHWND\_\_@@IIJ@Z$1  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_\_imp\_\_wglMakeCurrent@8 referenced in function \_\_catch$?messageWndProc@WindowsMessageHelpers@juce@@YGJPAUHWND\_\_@@IIJ@Z$1  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_\_imp\_\_wglShareLists@8 referenced in function "public: \_\_thiscall juce::WindowedGLContext::WindowedGLContext(class juce::Component \* const,struct HGLRC\_\_ \*,class juce::OpenGLPixelFormat const &)" (??0WindowedGLContext@juce@@QAE@QAVComponent@1@PAUHGLRC\_\_@@ABVOpenGLPixelFormat@1@@Z)  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_ImmGetContext@4 referenced in function "public: void \_\_thiscall juce::Win32ComponentPeer::IMEHandler::handleComposition(class juce::ComponentPeer &,struct HWND\_\_ \*,long)" (?handleComposition@IMEHandler@Win32ComponentPeer@juce@@QAEXAAVComponentPeer@3@PAUHWND\_\_@@J@Z)  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_ImmReleaseContext@8 referenced in function "public: void \_\_thiscall juce::Win32ComponentPeer::IMEHandler::handleComposition(class juce::ComponentPeer &,struct HWND\_\_ \*,long)" (?handleComposition@IMEHandler@Win32ComponentPeer@juce@@QAEXAAVComponentPeer@3@PAUHWND\_\_@@J@Z)  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_ImmGetCompositionStringW@16 referenced in function "private: class juce::Range\<int\> \_\_thiscall juce::Win32ComponentPeer::IMEHandler::getCompositionSelection(struct HIMC\_\_ \*,long)const " (?getCompositionSelection@IMEHandler@Win32ComponentPeer@juce@@ABE?AV?$Range@H@3@PAUHIMC\_\_@@J@Z)  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_ImmNotifyIME@16 referenced in function "public: void \_\_thiscall juce::Win32ComponentPeer::IMEHandler::handleEndComposition(class juce::ComponentPeer &,struct HWND\_\_ \*)" (?handleEndComposition@IMEHandler@Win32ComponentPeer@juce@@QAEXAAVComponentPeer@3@PAUHWND\_\_@@@Z)  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_ImmSetCandidateWindow@8 referenced in function "private: void \_\_thiscall juce::Win32ComponentPeer::IMEHandler::moveCandidateWindowToLeftAlignWithSelection(struct HIMC\_\_ \*,class juce::ComponentPeer &,class juce::TextInputTarget \*)const " (?moveCandidateWindowToLeftAlignWithSelection@IMEHandler@Win32ComponentPeer@juce@@ABEXPAUHIMC\_\_@@AAVComponentPeer@3@PAVTextInputTarget@3@@Z)  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_\_imp\_\_midiOutGetNumDevs@0 referenced in function \_\_catch$?freeDynamicLibrary@PlatformUtilities@juce@@SAXPAX@Z$0  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_\_imp\_\_midiOutGetDevCapsW@12 referenced in function \_\_catch$?freeDynamicLibrary@PlatformUtilities@juce@@SAXPAX@Z$0  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_\_imp\_\_midiOutOpen@20 referenced in function \_\_catch$?freeDynamicLibrary@PlatformUtilities@juce@@SAXPAX@Z$0  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_\_imp\_\_midiOutClose@4 referenced in function \_\_catch$?freeDynamicLibrary@PlatformUtilities@juce@@SAXPAX@Z$0  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_\_imp\_\_midiOutPrepareHeader@12 referenced in function \_\_catch$?freeDynamicLibrary@PlatformUtilities@juce@@SAXPAX@Z$0  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_\_imp\_\_midiOutUnprepareHeader@12 referenced in function \_\_catch$?freeDynamicLibrary@PlatformUtilities@juce@@SAXPAX@Z$0  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_\_imp\_\_midiOutShortMsg@8 referenced in function \_\_catch$?freeDynamicLibrary@PlatformUtilities@juce@@SAXPAX@Z$0  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_\_imp\_\_midiOutLongMsg@12 referenced in function \_\_catch$?freeDynamicLibrary@PlatformUtilities@juce@@SAXPAX@Z$0  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_\_imp\_\_midiInGetNumDevs@0 referenced in function \_\_catch$?freeDynamicLibrary@PlatformUtilities@juce@@SAXPAX@Z$0  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_\_imp\_\_midiInGetDevCapsW@12 referenced in function \_\_catch$?freeDynamicLibrary@PlatformUtilities@juce@@SAXPAX@Z$0  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_\_imp\_\_midiInOpen@20 referenced in function \_\_catch$?freeDynamicLibrary@PlatformUtilities@juce@@SAXPAX@Z$0  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_\_imp\_\_midiInClose@4 referenced in function "public: \_\_thiscall juce::MidiInCollector::~MidiInCollector(void)" (??1MidiInCollector@juce@@QAE@XZ)  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_\_imp\_\_midiInPrepareHeader@12 referenced in function "public: void \_\_thiscall juce::MidiInCollector::MidiHeader::write(struct HMIDIIN\_\_ \*)" (?write@MidiHeader@MidiInCollector@juce@@QAEXPAUHMIDIIN\_\_@@@Z)  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_\_imp\_\_midiInUnprepareHeader@12 referenced in function "public: void \_\_thiscall juce::MidiInCollector::MidiHeader::unprepare(struct HMIDIIN\_\_ \*)" (?unprepare@MidiHeader@MidiInCollector@juce@@QAEXPAUHMIDIIN\_\_@@@Z)  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_\_imp\_\_midiInAddBuffer@12 referenced in function "public: void \_\_thiscall juce::MidiInCollector::MidiHeader::write(struct HMIDIIN\_\_ \*)" (?write@MidiHeader@MidiInCollector@juce@@QAEXPAUHMIDIIN\_\_@@@Z)  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_\_imp\_\_midiInStart@4 referenced in function "public: void \_\_thiscall juce::MidiInCollector::start(void)" (?start@MidiInCollector@juce@@QAEXXZ)  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_\_imp\_\_midiInStop@4 referenced in function "public: void \_\_thiscall juce::MidiInCollector::stop(void)" (?stop@MidiInCollector@juce@@QAEXXZ)  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_\_imp\_\_midiInReset@4 referenced in function "public: void \_\_thiscall juce::MidiInCollector::stop(void)" (?stop@MidiInCollector@juce@@QAEXXZ)  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_\_imp\_\_timeGetTime@0 referenced in function \_\_catch$?freeDynamicLibrary@PlatformUtilities@juce@@SAXPAX@Z$0  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_\_imp\_\_timeBeginPeriod@4 referenced in function "public: \_\_thiscall juce::HiResCounterHandler::HiResCounterHandler(void)" (??0HiResCounterHandler@juce@@QAE@XZ)  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_DrawDibOpen@0 referenced in function "public: void \_\_thiscall juce::WindowsBitmapImage::blitToWindow(struct HWND\_\_ \*,struct HDC\_\_ \*,bool,int,int,class juce::RectangleList const &,unsigned char)" (?blitToWindow@WindowsBitmapImage@juce@@QAEXPAUHWND\_\_@@PAUHDC\_\_@@\_NHHABVRectangleList@2@E@Z)  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_DrawDibDraw@52 referenced in function "public: void \_\_thiscall juce::WindowsBitmapImage::blitToWindow(struct HWND\_\_ \*,struct HDC\_\_ \*,bool,int,int,class juce::RectangleList const &,unsigned char)" (?blitToWindow@WindowsBitmapImage@juce@@QAEXPAUHWND\_\_@@PAUHDC\_\_@@\_NHHABVRectangleList@2@E@Z)  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_\_imp\_\_InternetCrackUrlW@16 referenced in function "private: void \_\_thiscall juce::WebInputStream::createConnection(bool (\_\_cdecl\*)(void \*,int,int),void \*)" (?createConnection@WebInputStream@juce@@AAEXP6A\_NPAXHH@Z0@Z)  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_\_imp\_\_InternetOpenW@20 referenced in function "private: void \_\_thiscall juce::WebInputStream::createConnection(bool (\_\_cdecl\*)(void \*,int,int),void \*)" (?createConnection@WebInputStream@juce@@AAEXP6A\_NPAXHH@Z0@Z)  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_\_imp\_\_InternetCloseHandle@4 referenced in function "private: void \_\_thiscall juce::WebInputStream::close(void)" (?close@WebInputStream@juce@@AAEXXZ)  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_\_imp\_\_InternetConnectW@32 referenced in function "private: void \_\_thiscall juce::WebInputStream::createConnection(bool (\_\_cdecl\*)(void \*,int,int),void \*)" (?createConnection@WebInputStream@juce@@AAEXP6A\_NPAXHH@Z0@Z)  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_\_imp\_\_InternetReadFile@16 referenced in function "public: virtual int \_\_thiscall juce::WebInputStream::read(void \*,int)" (?read@WebInputStream@juce@@UAEHPAXH@Z)  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_\_imp\_\_InternetSetFilePointer@20 referenced in function "public: virtual bool \_\_thiscall juce::WebInputStream::setPosition(\_\_int64)" (?setPosition@WebInputStream@juce@@UAE\_N\_J@Z)  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_\_imp\_\_InternetWriteFile@16 referenced in function "private: void \_\_thiscall juce::WebInputStream::createConnection(bool (\_\_cdecl\*)(void \*,int,int),void \*)" (?createConnection@WebInputStream@juce@@AAEXP6A\_NPAXHH@Z0@Z)  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_\_imp\_\_InternetSetOptionW@16 referenced in function "private: void \_\_thiscall juce::WebInputStream::createConnection(bool (\_\_cdecl\*)(void \*,int,int),void \*)" (?createConnection@WebInputStream@juce@@AAEXP6A\_NPAXHH@Z0@Z)  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_\_imp\_\_FtpOpenFileW@20 referenced in function "private: void \_\_thiscall juce::WebInputStream::createConnection(bool (\_\_cdecl\*)(void \*,int,int),void \*)" (?createConnection@WebInputStream@juce@@AAEXP6A\_NPAXHH@Z0@Z)  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_\_imp\_\_HttpOpenRequestW@32 referenced in function "private: void \_\_thiscall juce::WebInputStream::createConnection(bool (\_\_cdecl\*)(void \*,int,int),void \*)" (?createConnection@WebInputStream@juce@@AAEXP6A\_NPAXHH@Z0@Z)  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_\_imp\_\_HttpSendRequestExW@20 referenced in function "private: void \_\_thiscall juce::WebInputStream::createConnection(bool (\_\_cdecl\*)(void \*,int,int),void \*)" (?createConnection@WebInputStream@juce@@AAEXP6A\_NPAXHH@Z0@Z)  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_\_imp\_\_HttpEndRequestW@16 referenced in function "private: void \_\_thiscall juce::WebInputStream::createConnection(bool (\_\_cdecl\*)(void \*,int,int),void \*)" (?createConnection@WebInputStream@juce@@AAEXP6A\_NPAXHH@Z0@Z)  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_\_imp\_\_HttpQueryInfoW@20 referenced in function "public: \_\_thiscall juce::WebInputStream::WebInputStream(class juce::String const &,bool,class juce::MemoryBlock const &,bool (\_\_cdecl\*)(void \*,int,int),void \*,class juce::String const &,int,class juce::StringPairArray \*)" (??0WebInputStream@juce@@QAE@ABVString@1@\_NABVMemoryBlock@1@P6A\_NPAXHH@Z30HPAVStringPairArray@1@@Z)  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_\_imp\_\_PathStripToRootW@4 referenced in function \_\_catch$?freeDynamicLibrary@PlatformUtilities@juce@@SAXPAX@Z$0  
1\>juce\_win32\_NativeCode.obj : error LNK2019: unresolved external symbol \_\_imp\_\_glViewport@16 referenced in function \_\_catch$?messageWndProc@WindowsMessageHelpers@juce@@YGJPAUHWND\_\_@@IIJ@Z$1  
1\>../../bin\Juce\_Debug\_vs2013.dll : fatal error LNK1120: 48 unresolved externals  
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
