HelloWorld Linker Error Visual Studio Express 2012 Win 7 X64

C, C++, and Visual C++
nicklaszlo
Fresh meat
Posts: 2
Joined: Fri Mar 14, 2014 5:29 pm
Contact:

HelloWorld Linker Error Visual Studio Express 2012 Win 7 X64

Postby nicklaszlo » Fri Mar 14, 2014 5:42 pm

Tip: If you get these errors

1>------ Build started: Project: HelloWorld, Configuration: Debug Win32 ------
1> HelloWorld.c
1>HelloWorld.obj : error LNK2019: unresolved external symbol __imp__CPhidget_getDeviceName@8 referenced in function _AttachHandler@8
1>HelloWorld.obj : error LNK2019: unresolved external symbol __imp__CPhidget_getSerialNumber@8 referenced in function _AttachHandler@8
1>HelloWorld.obj : error LNK2019: unresolved external symbol __imp__CPhidget_getErrorDescription@8 referenced in function _AttachHandler@8
1>HelloWorld.obj : error LNK2019: unresolved external symbol __imp__CPhidgetManager_create@4 referenced in function _main
1>HelloWorld.obj : error LNK2019: unresolved external symbol __imp__CPhidgetManager_open@4 referenced in function _main
1>HelloWorld.obj : error LNK2019: unresolved external symbol __imp__CPhidgetManager_close@4 referenced in function _main
1>HelloWorld.obj : error LNK2019: unresolved external symbol __imp__CPhidgetManager_delete@4 referenced in function _main
1>HelloWorld.obj : error LNK2019: unresolved external symbol __imp__CPhidgetManager_set_OnAttach_Handler@12 referenced in function _main
1>HelloWorld.obj : error LNK2019: unresolved external symbol __imp__CPhidgetManager_set_OnDetach_Handler@12 referenced in function _main
1>HelloWorld.obj : error LNK2019: unresolved external symbol __imp__CPhidgetManager_set_OnError_Handler@12 referenced in function _main
1>C:\Users\laszlo\Desktop\robot\VCpp_2.1.8.20140227\VCpp\Debug\HelloWorld.exe : fatal error LNK1120: 10 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

On this page
http://phidgets.com/docs/Language_-_C/C ... 2F7.2F8.29
Follow the instructions to add x64 in configuration manager.

It took hours to find this information in the documentation.

khanal
Fresh meat
Posts: 1
Joined: Wed Jul 22, 2015 11:33 am
Contact:

Re: HelloWorld Linker Error Visual Studio Express 2012 Win 7

Postby khanal » Wed Jul 22, 2015 11:36 am

Thanks. This was very helpful. I was having the same problem with VS 2010 on Win 8.1 x64.


Return to “C/C++”

Who is online

Users browsing this forum: No registered users and 2 guests