TlbImp : error TI0000 : System.ApplicationException - Unable to located specified reference: 'MSDATASRC' - windows-server-2012-r2

I am moving from windows server 2003 build machine to windows server 2012 and a part of automated build is not working.
This is the command that gives error
Z:\>"C:\Program Files\Microsoft SDKs\Windows\v7.0\bin\TlbImp.exe" /nologo /sysarray /strictref "D:\engtmp\VSFlex8.ocx" /keyfile:"D:\engtmp\MyKey.key" /out:"D:\engtmp\Interop.VSFlex8.dll" /machine:x86
/verbose /reference:MSDATASRC
TlbImp : error TI0000 : System.ApplicationException - Unable to located specified reference: 'MSDATASRC'
My windows knowledge is limited, I appreciate any help..

Related

Trying to build GDAL from github using Visual Studio 2019 v16.6.5 on Windows 10 x64

I want to use Visual Studio 2019 to build GDAL. But I keep getting errors when trying to build.
The computer I'm using is Acer Aspire f 15 F5573G-72CP,
CPU is i7 7500U 2.7GHz, RAM is 16GB, OS is Windows 10 64 bit
Steps I've taken are:
Download Visual Studio Community, included .NET desktop development, Universal Windows Platform development, Desktop development with C++ and Node.js development.
Used GIT BASH from git for windows to pull the repo https://github.com/OSGeo/GDAL.git and located it c:/gdal
in c:/gdal/GDAL/nmake.opt:
3.a. changed line 42 to Line 42: MSVC_VER=1926
3.b. I uncommented line 260:
Line 259: # PROJ stuff (required dependency: PROJ >= 6)
Line 260: PROJ_INCLUDE = -Id:\install-proj\local\include
3.c. Uncommented line 213: Line 213: WIN64=YES
Also pulled the repo: https://github.com/OSGeo/PROJ.git located at c:/proj/PROJ
Using Windows Powershell, cd c:/gdal/gdal -> generate_vcxproj.bat 16.0 64 gdal_vs2019
which outputs the following:
PS C:\gdal\gdal> .\generate_vcxproj.bat 16.0 64 gdal_vs2019
The system cannot find the path specified.
Generating:
"C:\gdal\gdal\gdal_vs2019.vcxproj"
"C:\gdal\gdal\gdal_vs2019.vcxproj.user"
"C:\gdal\gdal\gdal_vs2019.vcxproj.filters"
"C:\gdal\autotest\cpp\gdal_vs2019_test.vcxproj"
"C:\gdal\autotest\cpp\gdal_vs2019_test.vcxproj.user"
"C:\gdal\autotest\cpp\gdal_vs2019_test.vcxproj.filters"
This might take a little while...
Projects done!
Launch Visual Studio IDE
* Open project "C:\gdal\gdal\gdal_vs2019.vcxproj"
* Add project "C:\gdal\autotest\cpp\gdal_vs2019_test.vcxproj"
* Configure Build Dependencies to build the main project before the test project.
* Save solution in .sln file
Done!
PS C:\gdal\gdal>
Open Visual Studio 2019, open a project or solution, select C:\gdal\gdal\gdal_vs2019.vcxproj, ensure Solution Platforms dropdown is set to x64, Build->Build Solution, which returns three errors:
Severity Code Description Project File Line Suppression State
Error U1077 'call' : return code '0x1' gdal_vs2019 C:\gdal\gdal\NMAKE 1
Severity Code Description Project File Line Suppression State
Error U1077 '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\bin\HostX86\x64\nmake.EXE"' : return code '0x2' gdal_vs2019 C:\gdal\gdal\NMAKE 1
Severity Code Description Project File Line Suppression State
Error MSB3073 The command "chcp 65001 >NUL && nmake -f makefile.vc MSVC_VER=1926 WIN64=1 DEBUG=1 WITH_PDB=1" exited with code 2. gdal_vs2019 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.MakeFile.Targets 46
The Output tab shows:
1>------ Build started: Project: gdal_vs2019, Configuration: Debug x64 ------
1>
1>Microsoft (R) Program Maintenance Utility Version 14.26.28806.0
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>
1> cd port
1> nmake /nologo /f makefile.vc
1> call prev_dllbuild.bat
1>The system cannot find the path specified.
1>
1>C:\gdal\gdal\port>IF NOT EXIST dllbuild.prev (ECHO 1 ) 1>dllbuild.prev
1>
1>C:\gdal\gdal\port>SET /P PREV_DLLBUILD= 0<dllbuild.prev
1>
1>C:\gdal\gdal\port>IF NOT "1" == "1" (ECHO 1 ) 1>dllbuild.prev
1>NMAKE : fatal error U1077: 'call' : return code '0x1'
1>Stop.
1>NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\bin\HostX86\x64\nmake.EXE"' : return code '0x2'
1>Stop.
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.MakeFile.Targets(46,5): error MSB3073: The command "chcp 65001 >NUL && nmake -f makefile.vc MSVC_VER=1926 WIN64=1 DEBUG=1 WITH_PDB=1" exited with code 2.
1>Done building project "gdal_vs2019.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
How should I address these errors to get GDAL built successfully?
This is a little late, but have you tried the following:
Read https://trac.osgeo.org/gdal/wiki/BuildingOnWindows
Read https://trac.osgeo.org/gdal/wiki/BuildHints for specific
needs/dependencies/drivers
Get all the dependencies you need
Edit nmake.opt to disable/enable features/drivers you don't
need
Run NMAKE
You could also try cleaning:
nmake /f makefile.vc clean
nmake /f makefile.vc
Finally, you could try building on a different computer.
Hark, this is the way one should ask questions: clear, precise steps, detailed description. Very helpful!
I could compile when I didn't use the GIT repo. Instead I downloaded PROJ following their Windows installation documentation:
The simplest way to install PROJ on Windows is to use the OSGeo4W_
software distribution. OSGeo4W provides easy access to many popular
open source geospatial software packages. After installation you can
use PROJ from the OSGeo4W shell. To install PROJ do the following:
note::
If you have already installed software via OSGeo4W on your computer, or if
you have already installed QGIS on your computer, it is likely that PROJ is
already installed. Type "OSGeo4W Shell" in your start menu and check whether
that gives a match.
Download either the 32 bit or 64 bit installer.
Run the OSGeo4W setup program.
Select "Advanced Install" and press Next.
Select "Install from Internet" and press Next.
Select a installation directory. The default suggestion is fine in most cases. Press Next.
Select "Local package directory". The default suggestion is fine in most cases. Press Next.
Select "Direct connection" and press Next.
Choose the download.osgeo.org server and press Next.
Find "proj" under "Commandline_Utilities" and click the package in the "New" column until the version you want to install appears.
Press next to install PROJ.
I downloaded the installers from osgeo4W. Because I needed both 32 and 64 bit versions I downloaded osgeo4w-setup-x86-v1.exe and osgeo4w-setup-x86_64-v1.exe. The download got stuck after 25% when downloading the big proj-file from osgeo, so I selected the oslandia download link instead. This initially fails (at least for me), but after restart it could finish.
In the download package selection click on the "Skip" logo to select binary ("B") and source ("S"). I selected both. I downloaded "proj", "proj-dev" and "proj-dev-data", not sure what is actually neeeded. When it asked to include dependencies (a lot), I selected to include them.
In the nmake.opt (your step 3) I used for the 32 bit:
PROJ_INCLUDE = -IC:\OSGeo4W\include
PROJ_LIBRARY = C:\OSGeo4W\lib\proj.lib
and for the 64 bit:
PROJ_INCLUDE = -IC:\OSGeo4W64\include
PROJ_LIBRARY = C:\OSGeo4W64\lib\proj.lib
For running the generate_vcxproj.bat, I used Visual Studio 2022 x86 and x64 native tool command prompts. In the bat-file I changed:
if "%_vcver_%"=="16.0" (
set _clver_=1926
set _vstoolset_=v143
And in the nmake.opt:
MSVC_VER=1929
I run the bat separately for 64 and 32 bits:
generate_vcxproj.bat 16.0 64 gdal_vs2022
generate_vcxproj.bat 16.0 32 gdal_vs2022_x86
After this step I could open the vcxproj-files in Visual Studio and compile the libraries. I used the genererated gdal_i.lib's and accompanying gdal303.dll's in my project.

Facing problem to build boost using VS 2019 command tool

I am facing a problem to build boost using visual studio 2019 command tool.
Below is the error :
Building Boost.Jam build engine
cl : Command line warning D9035 : option 'GZ' has been deprecated and will be removed in a future release
cl : Command line warning D9036 : use 'RTC1' instead of 'GZ'
cl : Command line warning D9002 : ignoring unknown option '/MLd'
Failed to build Boost.Jam build engine.
Please consult bjam.log for furter diagnostics.
You can try to obtain a prebuilt binary from
http://sf.net/project/showfiles.php?group_id=7586&package_id=72941
Also, you can file an issue at http://svn.boost.org
Please attach bjam.log in that case.

v8.5 - Error Compiling Parallel Transformer

I would appreciate if i can get some help in solving this issue for which i have been looking for information for over 2 days through various forums. Crying or Very sad Crying or Very sad
I have installed Infosphere Datastage v8.5 on windows environment for testing and have run a couple of jobs, but when i run a job containing a transformer i get compilation error.
Job: Row generator -> Tfx -> Sequential File
Based on my search through various forums i find that Similar issue has been faced by others as well.But i am unable to find a concrete answer regarding the following:
1. A Compiler that i need to install and the related SDK that needs to be installed along with it
2. or A combined pack that has both compiler+SDK
The Installation Guide talks about Microsoft Visual Studio .NET 2008 Express Edition C++: but does not mention which is the associated SDK that needs to be installed ?
or is there a newer version of C++ compiler+SDK that will work on my environment
My Environment Details:
OS - Windows Server 2008 R2(Standard) SP1 - 64 bit
IIS - Infosphere Information Server v8.5 64bit Multilingual
--================
.Net framework
--================
Microsoft .Net framework 1.1
Microsoft .Net framework 4 Client Profile
Microsoft .Net framework 4 Extended
--=====
SDK
--=====
Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1
This SDK created 2 directories path , which are as follows:
C:\Program Files\Microsoft SDKs
C:\Program Files (x86)\Microsoft Visual Studio 9.0
Windows Environment Variables:
INCLUDE - C:\IBM\SQLLIB\INCLUDE;C:\IBM\SQLLIB\LIB;C:\Program Files\Microsoft SDKs\Windows\v7.0\Include
LIB - C:\Program Files\Microsoft SDKs\Windows\v7.0\Lib;C:\IBM\SQLLIB\LIB
CLASSPATH - .;C:\IBM\SQLLIB\java\db2java.zip;C:\IBM\SQLLIB\java\db2jcc.jar;C:\IBM\SQLLIB\java\sqlj.zip;
C:\IBM\SQLLIB\java\db2jcc_license_cu.jar;C:\IBM\SQLLIB\bin;C:\IBM\SQLLIB\java\common.jar
Path - C:\IBM\InformationServer\Server\DSComponents\bin;C:\Program Files (x86)\MKS Toolkit\mksnt;C:\PROGRA~2\MKSTOO~1\bin64;C:\PROGRA~2\MKSTOO~1\bin;
C:\PROGRA~2\MKSTOO~1\bin\X11;C:\PROGRA~2\MKSTOO~1\mksnt;C:\IBM\InformationServer\ASBNode\apps\jre\bin\classic;C:\IBM\InformationServer\ASBNode\lib\cpp;
C:\IBM\InformationServer\ASBNode\apps\proxy\cpp\vc60\MT_dll\bin;%systemroot%\system32;%systemroot%;
%systemroot%\system32\wbem;%systemroot%\system32\windowspowershell\v1.0\;c:\program files (x86)\microsoft visual studio 9.0\vc\bin;
c:\program files (x86)\microsoft visual studio 9.0\common7\ide;c:\program files\ibm\gsk8\lib64;C:\IBM\SQLLIB\BIN;C:\IBM\SQLLIB\FUNCTION;
C:\IBM\SQLLIB\SAMPLES\REPL;C:\Windows/SysWOW64
Compiler information from windows command prompt:
c:\Users\skh>cl.exe
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
usage: cl [ option... ] filename... [ /link linkoption... ]
Datastage Environment Variables:
APT_COMPILEOPT (old): -W/TP -W/EHa -DAPT_USE_ANSI_IOSTREAMS -c -W/Zc:wchar_t-
APT_COMPILEOPT (new): -W/TP -W/EHa -DAPT_USE_ANSI_IOSTREAMS -c
APT_LINKOPT(old): -s -W/dll -W/base:0x50000000 -W/Zc:wchar_t-
APT_LINKOPT(new): -s -W/dll -W/base:0x50000000
The (old) represent the default values that DS Environment variables had. I ran my job which had a transformer but i got the compilation error.
I changed the Environment variable values to what is stated in (new), still i get the compilation error mentioned below
Output from transformer compilation follows:
I IIS-DSEE-TFCN-00001 12:55:36(000)
IBM WebSphere DataStage Enterprise Edition 8.5.0.5746
Copyright (c) 2001, 2005-2008 IBM Corporation. All rights reserved
##I IIS-DSEE-TFCN-00006 12:55:36(001) <main_program> conductor uname: -s=Windows_NT; -r=1; -v=6; -n=IN-MUM-IBMQLT; -m=Pentium
##I IIS-DSEE-TOSH-00002 12:55:36(002) <main_program> orchgeneral: loaded
##I IIS-DSEE-TOSH-00002 12:55:36(003) <main_program> orchsort: loaded
##I IIS-DSEE-TOSH-00002 12:55:36(004) <main_program> orchstats: loaded
##W IIS-DSEE-TOSH-00049 12:55:36(007) <main_program> Parameter specified but not used in flow: DSPXWorkingDir
##E IIS-DSEE-TBLD-00076 12:55:39(000) <main_program> Error when checking composite operator: Subprocess command failed with exit status 256.
##E IIS-DSEE-TFSR-00019 12:55:39(001) <main_program> Could not check all operators because of previous error(s)
##W IIS-DSEE-TFTM-00012 12:55:39(002) <transform> Error when checking composite operator: The number of reject datasets "0" is less than the number of input datasets "1".
##I IIS-DSEE-TBLD-00000 12:55:39(003) <main_program> Error when checking composite operator: Output from subprocess: cl : Command line warning D9035 : option 'GX' has been deprecated and will be removed in a future release
cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
cl : Command line warning D9025 : overriding '/GX' with '/EHa'
##I IIS-DSEE-TBLD-00000 12:55:39(004) <main_program> Error when checking composite operator: Output from subprocess: C:\IBM\InformationServer\Server\PXEngine\include\apt_util/ints.h(83) : fatal error C1083: Cannot open include file: 'strstream': No such file or directory
##W IIS-DSEE-TFEV-00025 12:55:39(005) <transform> Error when checking composite operator: Converting string to number.
##W IIS-DSEE-TFEV-00023 12:55:39(006) <transform> Error when checking composite operator: Implicit conversion from source type "String" to result type "DFloat".
##W IIS-DSEE-TFEV-00025 12:55:39(007) <transform> Error when checking composite operator: Converting number to string.
##W IIS-DSEE-TFEV-00023 12:55:39(008) <transform> Error when checking composite operator: Implicit conversion from source type "DFloat" to result type "String".
##W IIS-DSEE-TBLD-00000 12:55:39(009) <main_program> Error when checking composite operator: Output from subprocess: ld: script execution error in file 'C:/PROGRA~2/MKSTOO~1/etc/nutccg/ld.ccg' on line 1119
>>> execv: could not run 'link32': The system cannot find the file specified.
##I IIS-DSEE-TBLD-00079 12:55:39(010) <transform> Error when checking composite operator: cxx -LC:/IBM/InformationServer/Server/Projects/PRJ_QSPOC/RT_BP2.O/ -LC:/IBM/InformationServer/Server/PXEngine/lib -LC:/IBM/InformationServer/Server/PXEngine/user_lib -s -W/dll -W/base:0x50000000 -lliborchnt -lliborchcorent -lliborchbuildopnt C:/IBM/InformationServer/Server/Projects/PRJ_QSPOC/RT_BP2.O/V0S3_TestJob_Tfx_Transformer.tmp.o -o C:/IBM/InformationServer/Server/Projects/PRJ_QSPOC/RT_BP2.O/V0S3_TestJob_Tfx_Transformer.dll.
##E IIS-DSEE-TCOS-00029 12:55:39(011) <main_program> Creation of a step finished with status = FAILED. (TestJob_Tfx.Transformer)
*** Internal Generated Transformer Code follows:
0001: //
0002: // Generated file to implement the V0S3_TestJob_Tfx_Transformer transform operator.
0003: //
0004:
0005: // define our input/output link names
0006: inputname 0 DSLink2;
0007: outputname 0 DSLink5;
0008:
0009: initialize {
0010: // define our control variables
0011: int8 RowRejected0;
0012: int8 NullSetVar0;
0013:
0014: }
0015:
0016: mainloop {
0017:
0018: // declare our intermediate variables for this section
0019: dfloat InterVar0_0;
0020:
0021: // initialise the rejected row variable
0022: RowRejected0 = 1;
0023:
0024: // evaluate columns (no constraints) for link: DSLink5
0025: InterVar0_0 = DSLink2.Dummy1;
0026: DSLink5.Dummy1 = (InterVar0_0 + 5);
0027: writerecord 0;
0028: RowRejected0 = 0;
0029: }
0030:
0031: finish {
0032: }
0033:
*** End of Internal Generated Transformer Code
This is how i went about fixing it. I hope this helps people facing similar problems and saves some time and effort.
so , here it goes :
I installed Visual Studio C++ 2008 Express Edition.
I then worked around vcvarsall.bat file .if you are wondering why , please check
(
http://msdn.microsoft.com/en-us/library/x4d2c09s(v=vs.80).aspx )
and
Errors while building/installing C module for Python 2.7
)
I executed the following from the cmd window, to set the 64 bit compiler:
vcvarsall.bat amd64
NOTE: my environment has a X64 AMD chipset windows server;I used echo %PROCESSOR_ARCHITECTURE% , from cmd window to determine this.
To cross check which compiler is set, execute the following and the output would indicate.
cl.exe
Next , set the following windows system variables:
INCLUDE - C:\IBM\SQLLIB\INCLUDE;C:\IBM\SQLLIB\LIB; C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include
LIB - C:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib ;C:\IBM\SQLLIB\LIB
Note:-
The folder path C:\Program Files\Microsoft SDKs\Windows\v6.0A is created by the Visual Studio C++ 2008 Express Edition. This should be the source for folder paths that are set for INCLUDE & LIB
There is a similar path that the SDK creates C:\Program Files\Microsoft SDKs\Windows\v7.0\ , but Include and Lib folder from this path should not be used to set the above mentioned Windows Environment variables , I made this mistake during my set up :(
for reference please check the Release Note of the SDK that is to be installed.
Set the following Datastage ENV variable,from the Administrator, to values below.
APT_COMPILEOPT : -W/TP -W/EHa -DAPT_USE_ANSI_IOSTREAMS -c -W/Zc:wchar_t-
APT_LINKOPT : -s -W/dll -W/base:0x50000000 -W/Zc:wchar_t-
I then restarted the Datastage services.
.. and the transformers started to work :)
PS : I did not uninstall Information Server nor the SDK (which i initially presumed was the problem)

libcURL unresolved externals after 7.36 rebuild

Ok, doing an old VC project did not work, so I tried based on the documentation discussing the winbuild folder and directly running the nmake /f Makefile.vc... and STILL get unresolved externals. This SHOULD NOT be this difficult on such a widely used and maintained system. All from a brand-new fresh download as of today.
I am using VS2013 command line prompt and from capturing the output via > redirection to text file and 2> redirecting error content I get
nmake /f Makefile.vc mode=dll VS=12 > compileResult.txt 2> compileError.txt
(Error content)
Microsoft (R) Program Maintenance Utility Version 12.00.21005.1
Copyright (C) Microsoft Corporation. All rights reserved.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\link.exe"' : return code '0x460'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
(Rest of the build content)
configuration name: libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl
Using SSL:
Using SSH2:
Using ZLIB:
Using IDN: true
Using IPv6: true
Using SSPI: true
Using SPNEGO: true
Using WinSSL: true
CFLAGS: /I. /I ../lib /I../include /nologo /W3 /EHsc /DWIN32 /FD /c /DBUILDING_LIBCURL /I"../../deps/include" /DUSE_WIN32_IDN /DWANT_IDN_PROTOTYPES /DUSE_IPV6 /DUSE_WINDOWS_SSPI /DUSE_SCHANNEL /DHAVE_SPNEGO
LFLAGS: /nologo /machine:x86 "/LIBPATH:../../deps/lib"
GenPDB:
Debug:
Machine: x86
link.exe /DLL ws2_32.lib wldap32.lib advapi32.lib Normaliz.lib /out:..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib\libcurl.dll /IMPLIB:..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib\libcurl.lib /nologo /machine:x86 "/LIBPATH:../../deps/lib" ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/file.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/timeval.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/base64.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/hostip.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/progress.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/formdata.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/cookie.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/http.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/sendf.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/ftp.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/url.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/dict.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/if2ip.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/speedcheck.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/ldap.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/version.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/getenv.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/escape.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/mprintf.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/telnet.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/netrc.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/getinfo.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/transfer.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/strequal.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/easy.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/security.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/curl_fnmatch.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/fileinfo.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/ftplistparser.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/wildcard.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/krb5.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/memdebug.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/http_chunks.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/strtok.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/connect.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/llist.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/hash.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/multi.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/content_encoding.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/share.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/http_digest.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/md4.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/md5.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/http_negotiate.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/inet_pton.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/strtoofft.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/strerror.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/amigaos.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/hostasyn.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/hostip4.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/hostip6.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/hostsyn.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/inet_ntop.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/parsedate.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/select.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/tftp.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/splay.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/strdup.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/socks.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/ssh.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/rawstr.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/curl_addrinfo.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/socks_gssapi.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/socks_sspi.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/curl_sspi.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/slist.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/nonblock.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/curl_memrchr.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/imap.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/pop3.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/smtp.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/pingpong.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/rtsp.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/curl_threads.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/warnless.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/hmac.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/curl_rtmp.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/openldap.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/curl_gethostname.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/gopher.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/idn_win32.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/http_negotiate_sspi.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/http_proxy.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/non-ascii.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/asyn-ares.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/asyn-thread.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/curl_gssapi.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/curl_ntlm.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/curl_ntlm_wb.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/curl_ntlm_core.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/curl_ntlm_msgs.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/curl_sasl.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/curl_multibyte.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/hostcheck.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/bundles.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/conncache.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/pipeline.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/dotdot.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/x509asn1.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/http2.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/vtls/openssl.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/vtls/gtls.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/vtls/vtls.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/vtls/nss.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/vtls/qssl.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/vtls/polarssl.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/vtls/polarssl_threadlock.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/vtls/axtls.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/vtls/cyassl.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/vtls/curl_schannel.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/vtls/curl_darwinssl.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib/vtls/gskit.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib\libcurl.res
Creating library ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib\libcurl.lib and object ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-lib\libcurl.exp
Copying libs...
link.exe /incremental:no /libpath:"..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl\lib" /nologo /out:..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl\bin\curl.exe /subsystem:console /machine:x86 libcurl.lib ws2_32.lib wldap32.lib advapi32.lib Normaliz.lib ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-curl\tool_hugehelp.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-curl\nonblock.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-curl\rawstr.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-curl\strtoofft.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-curl/tool_binmode.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-curl/tool_bname.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-curl/tool_cb_dbg.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-curl/tool_cb_hdr.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-curl/tool_cb_prg.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-curl/tool_cb_rea.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-curl/tool_cb_see.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-curl/tool_cb_wrt.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-curl/tool_cfgable.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-curl/tool_convert.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-curl/tool_dirhie.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-curl/tool_doswin.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-curl/tool_easysrc.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-curl/tool_formparse.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-curl/tool_getparam.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-curl/tool_getpass.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-curl/tool_help.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-curl/tool_helpers.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-curl/tool_homedir.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-curl/tool_libinfo.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-curl/tool_main.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-curl/tool_metalink.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-curl/tool_mfiles.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-curl/tool_msgs.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-curl/tool_operate.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-curl/tool_operhlp.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-curl/tool_panykey.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-curl/tool_paramhlp.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-curl/tool_parsecfg.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-curl/tool_setopt.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-curl/tool_sleep.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-curl/tool_urlglob.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-curl/tool_util.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-curl/tool_vms.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-curl/tool_writeenv.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-curl/tool_writeout.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-curl/tool_xattr.obj ..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl-obj-curl\curl.res
tool_cb_rea.obj : error LNK2019: unresolved external symbol _curlx_read referenced in function _tool_read_cb
..\builds\libcurl-vc12-x86-release-dll-ipv6-sspi-spnego-winssl\bin\curl.exe : fatal error LNK1120: 1 unresolved externals
The instructions you used are actually very old. I don't know if those VS workspaces are actively maintained, and there is a newer makefile that the developers encourage people to use for command-line builds (see this thread in the curl mailing list: http://curl.haxx.se/mail/lib-2014-03/0220.html).
If you look in the curl source directory, there is a subdirectory called winbuild. I can usually build curl and libcurl successfully with the makefile in there, Makefile.vc. The options are clearly explained in the file BUILD.WINDOWS.txt. A basic build command might look something like:
C:\curl-src\winbuild> nmake -f Makefile.vc MODE=dll VC=12 MACHINE=x64
That will produce a "builds" folder in the curl source directory, which will have your curl.exe, libcurl.dll, and libcurl.lib. If you choose MODE=static, you will not get a libcurl.dll, but you will get libcurl_a.lib, which might be what you need for your project.
You can add the binaries and libs to you your VS project. You also might need to add the .h files from the curl include directory, and any other source files you want.
For curl 7.36.0, there was a small problem in the makefile, which the developers quickly corrected. You can get the updated makefiles from the GitHub repository in Daniel Stenberg's comment below. Simply replace the makefiles in the winbuild directory of the release package with the makefiles from the windbuild directory in the GitHub repo before building.
Hope that helps.

Building via MSBuild fails when run as System User

We are using Visual Studio 2012 to build our C++ application
If I run from the commandline in my source folder:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /p:Configuration=Release /p:Platform=Win32 Myproject2012.sln
it works fine. If it's run via the Buildscript of my buildserver (Atlassian bamboo) I get a lot of errors. The first two lines..
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(347,5): error MSB4018: The "CL" task failed unexpectedly. [C:\data\bamboo-home\xml-data\build-dir\XXX-IMB-JOB1\XXX\common\common.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(347,5): error MSB4018: System.TypeInitializationException: The type initializer for 'Microsoft.Build.Utilities.FileTracker' threw an exception. ---> System.IO.DirectoryNotFoundException: Das System kann den angegebenen Pfad nicht finden. (Exception from HRESULT: 0x80070003) [C:\data\bamboo-home\xml-data\build-dir\XXX-IMB-JOB1\XXX\common\common.vcxproj]
What can be the reason for this behaviour?
You can run the build outside of Bamboo as system if you use Sysinternals psexec.
psexec -i -s cmd.exe
Then try C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /p:Configuration=Release /p:Platform=Win32 Myproject2012.sln
Then create a shell that have elevated permissions and retry.
Should help see if its a permissions thing or a path thing. Ive tried building C++ as system and it seems PK.
Or it could be this:
MSBUILD MSB4018 error
I found the problem
The System Account has a default temp directory which msbuild doesn't like
I changed it to "c:\temp" no it works!
If someone else has the problem, you can change it in the registry
HKEY_USERS\.DEFAULT\Environment