You either link to the pre-existing lib file and simply include the headers, or you include the headers and source and you don't link to the lib.
When you installed WiX, it should of setup the WIX environment variable. Then in your project you should have "$(WIX)sdk\lib;%(AdditionalLibraryDirectories);" under the Linker/General/Additional Library Directories. As well, " $(WIX)sdk\inc;%(AdditionalIncludeDirectories);" under C/C++/General/Additional Include Directories. And finally " msi.lib;dutil_2010.lib;wcautil_2010.lib;Version.lib;%(AdditionalDependen cies)" under Linker/Input/Additional Dependencies. -----Original Message----- From: Kevin Hebert [mailto:ke...@legendary-immersion.com] Sent: Tuesday, November 29, 2011 10:56 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Custom Action to verify input I'm getting several errors for unresolved externals: Error 7 error LNK2005: _WcaSetProperty@8 already defined in installerdll.obj wcautil_2010.lib InstallerDLL Error 8 error LNK2019: unresolved external symbol _VerQueryValueW@16 referenced in function _FileVersion@12 dutil_2010.lib InstallerDLL Error 9 error LNK2019: unresolved external symbol _GetFileVersionInfoW@16 referenced in function _FileVersion@12 dutil_2010.lib InstallerDLL Error 10 error LNK2019: unresolved external symbol _GetFileVersionInfoSizeW@8 referenced in function _FileVersion@12 dutil_2010.lib InstallerDLL Error 11 fatal error LNK1120: 3 unresolved externals Error 90 Not a valid object file; detail: Data at the root level is invalid. Line 1, position 1. C:\Program Files (x86)\Windows Installer XML v3.5\SDK\lib\wcautil_2010_x64.lib I've linked the wcautil_2010.lib and the dutil_2010.lib as you mentioned. I even tried creating a test C++ Custom Action project, and put in my custom action code, and I still get these errors. ------------------------------------------------------------------------ ------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users