Search
Support & Downloads
All of Support
This Category
This Product
Software Products
Intel® C++ Compiler for Windows*
Error: couldn't open file "stdio.h" with Microsoft* Platform SDK

When using the Intel® C++/Fortran Compiler for IA-64 with the Microsoft* Platform SDK (Build 1289 or later), if you get the following error messages:

C:\hello>icl hello.c
Intel(R) C++ Compiler for applications running on IA-64 xxx
Copyright (C) 1985-2007 Intel Corporation. All rights reserved.
hello.c
hello.c(1): catastrophic error: could not open source file "stdio.h"
#include <stdio.h>
^
compilation aborted for hello.c (code 4)

It means that the paths of the include, lib and path for Platform SDK are not correctly set.

There are 2 steps to fix this problem: the changes are in bold.

  1. Edit iclvars.bat and/or ifortvars.bat at %Path_to_Intel_Compiler%\bin with correct path: (example is given for the Intel C++ Compiler, similar fix for Intel Fortran Compiler)
    @echo off
    Rem Intel(R) C++ Compiler build environment for IA-64 applications
    ... ...
    echo.
    call <Microsoft-PSDK-install-dir>\SetEnv /SRV64 /RETAIL
    title Intel(R) C++ Compiler build environment for IA-64 applications
    ... ...

  2. Edit icl.cfg and/or ifort.cfg at %Path_to_Intel_Compiler%\Bin :
    # This Configuration file may be used for additional switches
    -QvcXX
    # Path to the Microsoft Platform SDK* linker for IA-64 applications
    #-Qlocation,link,"<Microsoft-PSDK-install-dir>\bin\Win64"
    - comment out this line

This applies to:
Intel® C++ Compiler for Windows*
Intel® Fortran Compiler for Windows*

Solution ID: CS-020440
Date Created: 01-Feb-2005
Last Modified: 18-May-2007
Back to Top