LNK2019 Visual Studio 2012 PROFESSIONAL
-
Hi I am using the Following 2 functions WaitOnAddress and WakeByAddressAll They are in the Windows 8.0 SDK. I have nmake project and included both .h header I mean the path and the .lib file synchronization.lib in the VC++ directories 1) include directories 2) Library Directory I did a DUMPBIN /EXPORTS of synchronization.lib and I see the function how come the linker cann't find it
-
Hi I am using the Following 2 functions WaitOnAddress and WakeByAddressAll They are in the Windows 8.0 SDK. I have nmake project and included both .h header I mean the path and the .lib file synchronization.lib in the VC++ directories 1) include directories 2) Library Directory I did a DUMPBIN /EXPORTS of synchronization.lib and I see the function how come the linker cann't find it
-
ForNow wrote:
I see the function how come the linker cann't find it
Can't find what? What is the exact error message that you see?
Sorry don't know the pretag for the linker but you can see the output thing is I opened up VS command prompt and did DUMPBIN /EXPORT and I can see those functions exported and I did put that .lib library path (its Windows SDK 8.0) in VC++ directories for the library directories
Creating library msvc.debug.AMD64.obj\\hengine.lib and object msvc.debug.AMD64.obj\\hengine.exp
1>cpu.obj : error LNK2019: unresolved external symbol WaitOnAddress referenced in function s370_process_trace
1>general1.obj : error LNK2019: unresolved external symbol WakeByAddressAll referenced in function s390_branch_and_save_and_set_mode
1>msvc.debug.AMD64.bin\hengine.dll : fatal error LNK1120: 2 unresolved externals
1>NMAKE : fatal error U1077: 'link' : return code '0x460'
1> Stop. -
Sorry don't know the pretag for the linker but you can see the output thing is I opened up VS command prompt and did DUMPBIN /EXPORT and I can see those functions exported and I did put that .lib library path (its Windows SDK 8.0) in VC++ directories for the library directories
Creating library msvc.debug.AMD64.obj\\hengine.lib and object msvc.debug.AMD64.obj\\hengine.exp
1>cpu.obj : error LNK2019: unresolved external symbol WaitOnAddress referenced in function s370_process_trace
1>general1.obj : error LNK2019: unresolved external symbol WakeByAddressAll referenced in function s390_branch_and_save_and_set_mode
1>msvc.debug.AMD64.bin\hengine.dll : fatal error LNK1120: 2 unresolved externals
1>NMAKE : fatal error U1077: 'link' : return code '0x460'
1> Stop. -
It's a nmake project so All I do in the project properties on the left pane is VC++ directories I input the path the lib is in the library directories the thing is I have used other Windows Sdk API however this is in windows SDK 8.0 to I had to download and include the header path and library path after I installed Windows SDK 8.0
-
It's a nmake project so All I do in the project properties on the left pane is VC++ directories I input the path the lib is in the library directories the thing is I have used other Windows Sdk API however this is in windows SDK 8.0 to I had to download and include the header path and library path after I installed Windows SDK 8.0
-
I don't know nmake. But somewhere in the nmake file you need to tell the linker which libraries to include. Just giving the path to the directory will not work, it does not scan every file looking for exported functions.
-
Thing is I have added Windows SDK API into this project such as SendMessage to communicate with the windows program I wrote But I think you are right
-
Hi I am using the Following 2 functions WaitOnAddress and WakeByAddressAll They are in the Windows 8.0 SDK. I have nmake project and included both .h header I mean the path and the .lib file synchronization.lib in the VC++ directories 1) include directories 2) Library Directory I did a DUMPBIN /EXPORTS of synchronization.lib and I see the function how come the linker cann't find it
Going by the page at https://msdn.microsoft.com/en-us/library/windows/desktop/hh706898(v=vs.85).aspx You will need to include Synchronization.lib in the nmake file/settings with the other .lib files (inlcuding the path, im not too up to date with nmake)
-
Going by the page at https://msdn.microsoft.com/en-us/library/windows/desktop/hh706898(v=vs.85).aspx You will need to include Synchronization.lib in the nmake file/settings with the other .lib files (inlcuding the path, im not too up to date with nmake)
-
Well, as I say, the linker will not attempt to guess which .lib file it needs to include.