none
error C1083: Cannot open source file: '/bigobj': No such file or directory RRS feed

  • Question

  • Je participe au développement d'une application en C++ dans Microsoft Visual Studio 2013 Ultimate. Après avoir inclus la librairie boost_serialization à mon projet, j'ai obtenu une erreur à la compilation me suggérant de compiler avec la propriété /bigobj

    J'ai ajouté /bigobj aux propriétés de mon projet, cependant j'obtiens maintenant l'erreur suivante : error C1083: Cannot open source file: '/bigobj': No such file or directory

    Je ne comprends pas pourquoi le compilateur interprète /bigobj comme un fichier ou répertoire, alors qu'il s'agit en réalité d'une propriété du compilateur.

    Voici un copier-coller de la section concernée dans le fichier .vcxproj de mon projet :

    <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
        <ClCompile>
          <WarningLevel>Level3</WarningLevel>
          <Optimization>Disabled</Optimization>
          <PreprocessorDefinitions>WIN32;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
          <PrecompiledHeader>NotUsing</PrecompiledHeader>
          <AdditionalIncludeDirectories>vendor\include;vendor\include\copulas;$(ProjectDir);packages</AdditionalIncludeDirectories>
          <MultiProcessorCompilation>true</MultiProcessorCompilation>
          <MinimalRebuild>
          </MinimalRebuild>
          <OpenMPSupport>
          </OpenMPSupport>
          <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
          <AdditionalOptions>/bigobj %(AdditionalOptions)</AdditionalOptions>
        </ClCompile>
        <Link>
          <GenerateDebugInformation>true</GenerateDebugInformation>
          <AdditionalDependencies>lapack_win32.lib;blas_win32.lib;%(AdditionalDependencies)</AdditionalDependencies>
          <SubSystem>Windows</SubSystem>
          <EntryPointSymbol>main</EntryPointSymbol>
          <AdditionalLibraryDirectories>vendor\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
          <GenerateMapFile>false</GenerateMapFile>
          <MapExports>false</MapExports>
        </Link>
      </ItemDefinitionGroup>

    Et voici les dernières lignes du "output" à la compilation :

    1>Done executing task "CL".
    1>Task "CL"
    1>  Read Tracking Logs:
    1>  	Debug\hydro_stats.tlog\cl.read.1.tlog
    1>  Outputs for C:\USERS\ALEXIS\DESKTOP\STAGE\HYDROSTATS\HYDRO_STATS\SAFILEIO.C:
    1>  	C:\USERS\ALEXIS\DESKTOP\STAGE\HYDROSTATS\HYDRO_STATS\DEBUG\SAFILEIO.OBJ
    1>  safileio.c will be compiled as it was not found in the tracking log.
    1>  Outputs for C:\USERS\ALEXIS\DESKTOP\STAGE\HYDROSTATS\HYDRO_STATS\SAFILEIO.C:
    1>  	C:\USERS\ALEXIS\DESKTOP\STAGE\HYDROSTATS\HYDRO_STATS\DEBUG\SAFILEIO.OBJ
    1>  Write Tracking Logs:
    1>  	Debug\hydro_stats.tlog\cl.write.1.tlog
    1>  Environment Variables passed to tool:
    1>    VS_UNICODE_OUTPUT=1220
    1>  C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\CL.exe /c /IC:\Users\Alexis\Desktop\Stage\HydroStats\packages\boost.1.55.0.16\build\native\..\..\lib\native\include\ /Ivendor\include /Ivendor\include\copulas /IC:\Users\Alexis\Desktop\Stage\HydroStats\hydro_stats\ /Ipackages /AI"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\\" /AI"C:\Program Files (x86)\Windows Kits\8.1\References\CommonConfiguration\Neutral" /AI"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\\" /Zi /clr /nologo /W3 /WX- /MP /Od /Oy- /D BOOST_SERIALIZATION_NO_LIB /D WIN32 /D _DEBUG /D _UNICODE /D UNICODE /EHa /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"Debug\\" /Fd"Debug\vc120.pdb" /TP /FU"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\mscorlib.dll" /FU"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Data.dll" /FU"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.dll" /FU"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Drawing.dll" /FU"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Windows.Forms.DataVisualization.dll" /FU"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Windows.Forms.dll" /FU"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Xml.dll" /analyze- /errorReport:prompt /clr:nostdlib /Tp /bigobj safileio.c
    1>  Tracking command:
    1>  C:\Program Files (x86)\MSBuild\12.0\bin\Tracker.exe /d "C:\Program Files (x86)\MSBuild\12.0\bin\FileTracker.dll" /i C:\Users\Alexis\Desktop\Stage\HydroStats\hydro_stats\Debug\hydro_stats.tlog /r C:\USERS\ALEXIS\DESKTOP\STAGE\HYDROSTATS\HYDRO_STATS\SAFILEIO.C /b MSBuildConsole_CancelEvent73bc4bbf56d34f27895cb31bca8f65d4  /c "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\CL.exe"  /c /IC:\Users\Alexis\Desktop\Stage\HydroStats\packages\boost.1.55.0.16\build\native\..\..\lib\native\include\ /Ivendor\include /Ivendor\include\copulas /IC:\Users\Alexis\Desktop\Stage\HydroStats\hydro_stats\ /Ipackages /AI"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\\" /AI"C:\Program Files (x86)\Windows Kits\8.1\References\CommonConfiguration\Neutral" /AI"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\\" /Zi /clr /nologo /W3 /WX- /MP /Od /Oy- /D BOOST_SERIALIZATION_NO_LIB /D WIN32 /D _DEBUG /D _UNICODE /D UNICODE /EHa /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"Debug\\" /Fd"Debug\vc120.pdb" /TP /FU"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\mscorlib.dll" /FU"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Data.dll" /FU"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.dll" /FU"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Drawing.dll" /FU"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Windows.Forms.DataVisualization.dll" /FU"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Windows.Forms.dll" /FU"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Xml.dll" /analyze- /errorReport:prompt /clr:nostdlib /Tp /bigobj safileio.c
    1>  bigobj
    1>  safileio.c
    1>c1xx : fatal error C1083: Cannot open source file: '/bigobj': No such file or directory
    1>safileio.c(86): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
    1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(211) : see declaration of 'fopen'
    1>safileio.c(236): warning C4996: '_wfopen': This function or variable may be unsafe. Consider using _wfopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
    1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(590) : see declaration of '_wfopen'
    1>  The command exited with code 2.
    1>Done executing task "CL" -- FAILED.
    1>Done building target "ClCompile" in project "hydro_stats.vcxproj" -- FAILED.
    1>
    1>Build FAILED.

    Je suis vraiment embêté par ce problème et il me ralentit depuis longtemps. Quelqu'un pourrait-il me guider sur la procédure à suivre pour régler ce problème ? Merci beaucoup.

    mercredi 8 juillet 2015 17:23

Réponses