Shim build error

Add-in Express™ Support Service
That's what is more important than anything else

Shim build error
 
Erkut Sanda




Posts: 5
Joined: 2006-01-24
Hi,

I've written an Outlook Add-In with Add-In Express .Net in C#. When building the solution my shim project couldn't built and belove log is created. Anyone have any ideas about this?

Environment:
VS.Net 2003
Outlook 2003
Add-In Express .Net v2.2.1752.1437



------ Rebuild All started: Project: OutlookAddin, Configuration: Debug .NET ------

Preparing resources...
Updating references...
Performing main compilation...

Build complete -- 0 errors, 0 warnings
Building satellite assemblies...



------ Rebuild All started: Project: OutlookAddinShim, Configuration: Debug Win32 ------

Deleting intermediate files and output files for project 'OutlookAddinShim', configuration 'Debug|Win32'.
Creating Type Library...
Processing .\OutlookAddinShim.idl
OutlookAddinShim.idl
Processing C:\Program Files\Microsoft Visual Studio\VC98\Include\oaidl.idl
oaidl.idl
Processing C:\Program Files\Microsoft Visual Studio\VC98\Include\objidl.idl
objidl.idl
Processing C:\Program Files\Microsoft Visual Studio\VC98\Include\unknwn.idl
unknwn.idl
Processing C:\Program Files\Microsoft Visual Studio\VC98\Include\wtypes.idl
wtypes.idl
Processing C:\Program Files\Microsoft Visual Studio\VC98\Include\ocidl.idl
ocidl.idl
Processing C:\Program Files\Microsoft Visual Studio\VC98\Include\oleidl.idl
oleidl.idl
Processing C:\Program Files\Microsoft Visual Studio\VC98\Include\servprov.idl
servprov.idl
Processing C:\Program Files\Microsoft Visual Studio\VC98\Include\urlmon.idl
urlmon.idl
Processing C:\Program Files\Microsoft Visual Studio\VC98\Include\msxml.idl
msxml.idl
Processing .\msaddndr.idl
msaddndr.idl
Processing C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\oaidl.acf
oaidl.acf
Processing C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\ocidl.acf
ocidl.acf
Creating Type Library...
Processing .\msaddndr.idl
msaddndr.idl
Processing C:\Program Files\Microsoft Visual Studio\VC98\Include\oaidl.idl
oaidl.idl
Processing C:\Program Files\Microsoft Visual Studio\VC98\Include\objidl.idl
objidl.idl
Processing C:\Program Files\Microsoft Visual Studio\VC98\Include\unknwn.idl
unknwn.idl
Processing C:\Program Files\Microsoft Visual Studio\VC98\Include\wtypes.idl
wtypes.idl
Processing C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\oaidl.acf
oaidl.acf
Compiling...
StdAfx.cpp
c:\Program Files\Microsoft Visual Studio\VC98\Include\MSWSOCK.H(69) : error C2065: 'SOCKET' : undeclared identifier
c:\Program Files\Microsoft Visual Studio\VC98\Include\MSWSOCK.H(69) : error C2146: syntax error : missing ')' before identifier 's'
c:\Program Files\Microsoft Visual Studio\VC98\Include\MSWSOCK.H(69) : warning C4229: anachronism used : modifiers on data are ignored
c:\Program Files\Microsoft Visual Studio\VC98\Include\MSWSOCK.H(73) : error C2059: syntax error : ')'
c:\Program Files\Microsoft Visual Studio\VC98\Include\MSWSOCK.H(89) : error C3861: 'SOCKET': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio\VC98\Include\MSWSOCK.H(89) : error C2146: syntax error : missing ')' before identifier 'hSocket'
c:\Program Files\Microsoft Visual Studio\VC98\Include\MSWSOCK.H(89) : warning C4229: anachronism used : modifiers on data are ignored
c:\Program Files\Microsoft Visual Studio\VC98\Include\MSWSOCK.H(96) : error C2059: syntax error : ')'
c:\Program Files\Microsoft Visual Studio\VC98\Include\MSWSOCK.H(101) : error C3861: 'SOCKET': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio\VC98\Include\MSWSOCK.H(101) : error C2146: syntax error : missing ')' before identifier 'sListenSocket'
c:\Program Files\Microsoft Visual Studio\VC98\Include\MSWSOCK.H(101) : warning C4229: anachronism used : modifiers on data are ignored
c:\Program Files\Microsoft Visual Studio\VC98\Include\MSWSOCK.H(109) : error C2059: syntax error : ')'
c:\Program Files\Microsoft Visual Studio\VC98\Include\MSWSOCK.H(131) : error C3861: 'SOCKET': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio\VC98\Include\MSWSOCK.H(131) : error C2146: syntax error : missing ')' before identifier 'hSocket'
c:\Program Files\Microsoft Visual Studio\VC98\Include\MSWSOCK.H(131) : error C2165: 'left-side modifier' : cannot modify pointers to data
c:\Program Files\Microsoft Visual Studio\VC98\Include\MSWSOCK.H(131) : error C2513: 'BOOL *' : no variable declared before '='
c:\Program Files\Microsoft Visual Studio\VC98\Include\MSWSOCK.H(138) : error C2059: syntax error : ')'
c:\Program Files\Microsoft Visual Studio\VC98\Include\MSWSOCK.H(146) : error C3861: 'SOCKET': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio\VC98\Include\MSWSOCK.H(146) : error C2146: syntax error : missing ')' before identifier 'sListenSocket'
c:\Program Files\Microsoft Visual Studio\VC98\Include\MSWSOCK.H(146) : error C2165: 'left-side modifier' : cannot modify pointers to data
c:\Program Files\Microsoft Visual Studio\VC98\Include\MSWSOCK.H(146) : error C2513: 'BOOL *' : no variable declared before '='
c:\Program Files\Microsoft Visual Studio\VC98\Include\MSWSOCK.H(154) : error C2059: syntax error : ')'
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(85) : error C2378: 'SOCKET' : redefinition; symbol cannot be overloaded with a typedef
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(101) : error C2146: syntax error : missing ';' before identifier 'fd_array'
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(101) : error C2501: 'fd_set::SOCKET' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(101) : error C2501: 'fd_set::fd_array' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(104) : error C3861: 'SOCKET': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(104) : error C2059: syntax error : ')'
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1422) : error C2143: syntax error : missing ';' before '__stdcall'
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1422) : error C2501: 'SOCKET' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1422) : error C2371: 'SOCKET' : redefinition; different basic types
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1424) : error C3861: 'SOCKET': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1424) : error C2146: syntax error : missing ')' before identifier 's'
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1424) : warning C4229: anachronism used : modifiers on data are ignored
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1424) : error C2501: 'accept' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1427) : error C2059: syntax error : ')'
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1445) : error C3861: 'SOCKET': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1445) : error C2146: syntax error : missing ')' before identifier 's'
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1445) : warning C4229: anachronism used : modifiers on data are ignored
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1445) : error C2491: 'bind' : definition of dllimport data not allowed
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1448) : error C2059: syntax error : ')'
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1466) : error C3861: 'SOCKET': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1467) : error C2146: syntax error : missing ')' before identifier 's'
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1467) : warning C4229: anachronism used : modifiers on data are ignored
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1467) : error C2491: 'closesocket' : definition of dllimport data not allowed
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1467) : error C2059: syntax error : ')'
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1483) : error C3861: 'SOCKET': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1483) : error C2146: syntax error : missing ')' before identifier 's'
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1483) : warning C4229: anachronism used : modifiers on data are ignored
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1483) : error C2491: 'connect' : definition of dllimport data not allowed
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1486) : error C2059: syntax error : ')'
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1504) : error C3861: 'SOCKET': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1504) : error C2146: syntax error : missing ')' before identifier 's'
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1504) : warning C4229: anachronism used : modifiers on data are ignored
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1504) : error C2491: 'ioctlsocket' : definition of dllimport data not allowed
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1507) : error C2059: syntax error : ')'
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1525) : error C3861: 'SOCKET': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1525) : error C2146: syntax error : missing ')' before identifier 's'
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1525) : warning C4229: anachronism used : modifiers on data are ignored
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1525) : error C2491: 'getpeername' : definition of dllimport data not allowed
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1528) : error C2059: syntax error : ')'
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1546) : error C3861: 'SOCKET': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1546) : error C2146: syntax error : missing ')' before identifier 's'
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1546) : warning C4229: anachronism used : modifiers on data are ignored
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1546) : error C2491: 'getsockname' : definition of dllimport data not allowed
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1549) : error C2059: syntax error : ')'
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1567) : error C3861: 'SOCKET': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1567) : error C2146: syntax error : missing ')' before identifier 's'
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1567) : warning C4229: anachronism used : modifiers on data are ignored
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1567) : error C2491: 'getsockopt' : definition of dllimport data not allowed
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1572) : error C2059: syntax error : ')'
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1660) : error C3861: 'SOCKET': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1660) : error C2146: syntax error : missing ')' before identifier 's'
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1660) : warning C4229: anachronism used : modifiers on data are ignored
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1660) : error C2491: 'listen' : definition of dllimport data not allowed
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1662) : error C2059: syntax error : ')'
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1713) : error C3861: 'SOCKET': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1713) : error C2146: syntax error : missing ')' before identifier 's'
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1713) : warning C4229: anachronism used : modifiers on data are ignored
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1713) : error C2491: 'recv' : definition of dllimport data not allowed
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1717) : error C2059: syntax error : ')'
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1736) : error C3861: 'SOCKET': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1736) : error C2146: syntax error : missing ')' before identifier 's'
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1736) : warning C4229: anachronism used : modifiers on data are ignored
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1736) : error C2491: 'recvfrom' : definition of dllimport data not allowed
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1742) : error C2059: syntax error : ')'
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1788) : error C3861: 'SOCKET': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1788) : error C2146: syntax error : missing ')' before identifier 's'
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1788) : warning C4229: anachronism used : modifiers on data are ignored
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1788) : error C2491: 'send' : definition of dllimport data not allowed
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1792) : error C2059: syntax error : ')'
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1811) : error C3861: 'SOCKET': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1811) : error C2146: syntax error : missing ')' before identifier 's'
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1811) : warning C4229: anachronism used : modifiers on data are ignored
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1811) : error C2491: 'sendto' : definition of dllimport data not allowed
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1817) : error C2059: syntax error : ')'
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1838) : error C3861: 'SOCKET': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1838) : error C2146: syntax error : missing ')' before identifier 's'
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1838) : warning C4229: anachronism used : modifiers on data are ignored
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1838) : error C2491: 'setsockopt' : definition of dllimport data not allowed
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1843) : error C2059: syntax error : ')'
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1863) : error C3861: 'SOCKET': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1863) : error C2146: syntax error : missing ')' before identifier 's'
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1863) : warning C4229: anachronism used : modifiers on data are ignored
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1863) : error C2491: 'shutdown' : definition of dllimport data not allowed
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1865) : error C2059: syntax error : ')'
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1880) : error C2143: syntax error : missing ';' before '__stdcall'
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1880) : error C2501: 'SOCKET' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(1880) : error C2371: 'SOCKET' : redefinition; different basic types
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(2349) : error C3861: 'SOCKET': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(2349) : error C2146: syntax error : missing ')' before identifier 's'
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(2349) : warning C4229: anachronism used : modifiers on data are ignored
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(2349) : error C2491: 'WSAAsyncSelect' : definition of dllimport data not allowed
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(2353) : error C2059: syntax error : ')'
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(2399) : error C2143: syntax error : missing ';' before '__stdcall'
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(2399) : error C2501: 'SOCKET' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(2399) : error C2371: 'SOCKET' : redefinition; different basic types
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(2401) : error C3861: 'SOCKET': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(2401) : error C2146: syntax error : missing ')' before identifier 's'
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(2401) : warning C4229: anachronism used : modifiers on data are ignored
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(2401) : error C2501: 'WSAAccept' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio\VC98\Include\WINSOCK2.H(2401) : fatal error C1003: error count exceeds 100; stopping compilation

Build log was saved at "file://c:\work\EmptorNet\OutlookAddin\OutlookAddinShim\Debug\BuildLog.htm"
OutlookAddinShim - 102 error(s), 20 warning(s)


------ Starting pre-build validation for project 'OutlookAddinSetup' ------
------ Pre-build validation for project 'OutlookAddinSetup' completed ------
------ Rebuild All started: Project: OutlookAddinSetup, Configuration: Debug ------

Building file 'C:\work\EmptorNet\OutlookAddin\OutlookAddinSetup\Debug\OutlookAddinSetup.msi'...
WARNING: Two or more objects have the same target location ('[targetdir]\office.dll')
WARNING: Two or more objects have the same target location ('[targetdir]\office.dll')
ERROR: Could not find file 'c:\work\EmptorNet\OutlookAddin\OutlookAddinShim\Debug\OutlookAddinShim.dll' 'The system cannot find the file specified.'



---------------------- Done ----------------------

Rebuild All: 1 succeeded, 2 failed, 0 skipped


Posted 24 Jan, 2006 08:26:56 Top
Sergey Grischenko


Add-in Express team


Posts: 7228
Joined: 2004-07-05
Hi Erkut.

As far as I see the compiler is trying to use the header files from the older version of Visual Studio.
Did you change any properties in the shim project?
Do you have the same issue with a new add-in project that is created using the ADX COM Add-in wizard?
Posted 24 Jan, 2006 17:42:22 Top
Erkut Sanda




Posts: 5
Joined: 2006-01-24
Hi,

I seem that header files are read from VS6.0 include folder. I uninstalled VC++6.0 and everything is OK now.
Posted 25 Jan, 2006 04:35:03 Top