Main Site Documentation

Error c1083: Cannot open include file: 'string': No such file or directory


#1



C:\PK4.3\CLR\include\TinyClr_PlatformDef.h(236): fatal error C1083: Cannot open
include file: ‘string’: No such file or directory [C:\PK4.3\CLR\StartupLib\dot
netmf.proj]
C:\PK4.3\tools\targets\Microsoft.SPOT.System.x86.Targets(162,5): error : Build
failed: CLRStartup.cpp [C:\PK4.3\CLR\StartupLib\dotnetmf.proj]

I previously happened with “crtdbg.h” but I downloaded a copy of the web. What happens?


#2

Include environment paths.

C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE;
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\ATLMFC\INCLUDE;
C:\Program Files (x86)\Windows Kits\8.0\include\shared;
C:\Program Files (x86)\Windows Kits\8.0\include\um;
C:\Program Files (x86)\Windows Kits\8.0\include\winrt;

SET INCLUDE ==>
INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\ATLMFC\INCLUDE;C:\Program Files (x86)\Windows Kits\8.0\include\shared;C:\Program Files (x86)\Windows Kits\8.0\include\um;C:\Program Files (x86)\Windows Kits\8.0\include\winrt;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\ATLMFC\INCLUDE;C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include;C:\Program Files (x86)\Windows Kits\8.0\Include\shared;C:\Program Files (x86)\Windows Kits\8.0\Include\um;C:\Program Files (x86)\Windows Kits\8.0\Include\WinRT


#3

What compiler ate you using to build PK?


#4

GCC 4.6.2 and Visual Studio 12

Some SET’s.

ARG3=C:\GCC_ARM_4_6
ARMINC=C:\GCC_ARM_4_6\lib\gcc\arm-none-eabi\4.6.2\include
ARMLIB=C:\GCC_ARM_4_6\lib\gcc\arm-none-eabi\4.6.2

BHL_EXE=C:\PK4.3\BuildOutput\public\Release\server\dll\BuildHelper.exe
BUILD_ROOT=C:\PK4.3\BuildOutput\public
BUILD_ROOT_BASE=C:\PK4.3\BuildOutput
BUILD_TEST_ROOT=C:\PK4.3\BuildOutput\public\Release\Test
BUILD_TEST_TREE=C:\PK4.3\BuildOutput\public\Release\Test
BUILD_TEST_TREE_CLIENT=C:\PK4.3\BuildOutput\public\Release\Test\client
BUILD_TEST_TREE_SERVER=C:\PK4.3\BuildOutput\public\Release\Test\server
BUILD_TREE=C:\PK4.3\BuildOutput\public\Release
BUILD_TREE_CLIENT=C:\PK4.3\BuildOutput\public\Release\client
BUILD_TREE_SERVER=C:\PK4.3\BuildOutput\public\Release\server
CLRLIB=C:\PK4.3\Tools\Libraries
CLRROOT=C:\PK4.3

COMMON_BUILD_ROOT=C:\PK4.3
COMPILER_TOOL=GCC
COMPILER_TOOL_VERSION=GCC4.6
COMPILER_TOOL_VERSION_NUM=4.6

DOTNETMF_COMPILER=GCC4.6

FLAVOR_ARM=release
FLAVOR_DAT=Release
FLAVOR_MEMORY=Flash
FLAVOR_PLATFORM=iMXS
FLAVOR_WIN=Release
FP_NO_HOST_CHECK=NO

Framework35Version=v3.5
FrameworkDir=C:\Windows\Microsoft.NET\Framework
FrameworkDIR32=C:\Windows\Microsoft.NET\Framework
FrameworkVersion=v4.0.30319
FrameworkVersion32=v4.0.30319

GCC_TOOL_PATH=c:\GCC_ARM_4_6
GCC_VER=4.6.2
GNU_TARGET=arm-none-eabi
GNU_TOOLS=C:\GCC_ARM_4_6
GNU_TOOLS_BIN=C:\GCC_ARM_4_6\bin
GNU_VERSION=4.6.2

MDP_EXE=C:\PK4.3\BuildOutput\public\Release\server\dll\MetadataProcessor.exe
NetMfTargetsBaseDir=C:\PK4.3\Framework\IDE\Targets\

SPOCLIENT=C:\PK4.3
SPOROOT=C:\

TARGETCURRENT=C:\PK4.3_BUILD\arm\Flash\release\iMXS\bin
TINYCLR_USE_MSBUILD=1

VCINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC
VS110COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools
VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio 11.0
VS_VER=11


#5

I don’t understand!

FLAVOR_PLATFORM=iMXS

(iMXS ???)

I run the “msbuild /t:build /p:flavor=release;memory=flash” from directory Solutions\FEZCerberus


#6

Did you run it in the same command window where you set the environment?


#7

Yes, is the same cmd window.

Additional machine info. Win 7 x64 without SP1 (Spanish) & Visual Studio 12 (English)

C:\PK4.3>setenv_base.cmd GCC 4.6.2 C:\GCC_ARM_4_6
Compiler: GCC 4.6.2 C:\GCC_ARM_4_6
setting vars for GCC compiler GCC4.6.2

C:\PK4.3>cd Solutions\FEZCerberus

C:\PK4.3\Solutions\FEZCerberus>msbuild /t:build /p:flavor=release;memory=flash


#8

Solved with a clean installation of Win7 (x32) + VS 12 + NF SDK 4.3 + PK 4.3 + GCC 4.6.2 in a virtual machine.

I do not know what happened… :-\