locked
fatal error C1083: Cannot open include file: 'histogram.h': No such file or directory RRS feed

  • Question

  • hi.... im working in OpenGL 

    im trying to  get histogram of image but i got error below i.e.

    1>Compiling...
    1>histimg.cpp
    1>c:\program files\microsoft visual studio 9.0\common7\packages\glh\glh_extensions.h(66) : warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
    1>        c:\program files\microsoft visual studio 9.0\vc\include\string.h(79) : see declaration of 'strcat'
    1>c:\program files\microsoft visual studio 9.0\common7\packages\glh\glh_extensions.h(66) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
    1>        c:\program files\microsoft visual studio 9.0\vc\include\string.h(74) : see declaration of 'strcpy'
    1>c:\program files\microsoft visual studio 9.0\common7\packages\glh\glh_extensions.h(133) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
    1>        c:\program files\microsoft visual studio 9.0\vc\include\string.h(74) : see declaration of 'strcpy'
    1>c:\program files\microsoft visual studio 9.0\common7\packages\glh\glh_extensions.h(136) : warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
    1>        c:\program files\microsoft visual studio 9.0\vc\include\string.h(79) : see declaration of 'strcat'
    1>c:\program files\microsoft visual studio 9.0\common7\packages\glh\glh_extensions.h(143) : warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.
    1>        c:\program files\microsoft visual studio 9.0\vc\include\string.h(207) : see declaration of 'strdup'
    1>c:\program files\microsoft visual studio 9.0\common7\packages\glh\glh_extensions.h(164) : warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
    1>        c:\program files\microsoft visual studio 9.0\vc\include\string.h(79) : see declaration of 'strcat'
    1>c:\program files\microsoft visual studio 9.0\common7\packages\glh\glh_extensions.h(165) : warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
    1>        c:\program files\microsoft visual studio 9.0\vc\include\string.h(79) : see declaration of 'strcat'
    1>c:\documents and settings\kesar\my documents\visual studio 2008\projects\histimg\histimg\histimg.cpp(11) : fatal error C1083: Cannot open include file: 'histogram.h': No such file or directory
    1>Build log was saved at "file://c:\Documents and Settings\kesar\My Documents\Visual Studio 2008\Projects\histimg\histimg\Debug\BuildLog.htm"
    1>histimg - 1 error(s), 7 warning(s)

     

     

    PLZ HELP ME ITS URGENT ......

    THANKS......

    Monday, January 3, 2011 6:20 AM

Answers

  • On 03/01/2011 07:20, shivu k wrote:

    1>Compiling...
    1>histimg.cpp
    1>c:\program files\microsoft visual studio 9.0\common7\packages\glh\glh_extensions.h(66) : warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.

    You can ignore these warnings, or mute them defining _CRT_SECURE_NO_WARNINGS. You could do that in:

    Project Properties | Configuration Properties | C/C++ | Preprocessor | Preprocessor Definitions
     > 1>c:\documents and settings\kesar\my documents\visual studio 2008\projects\histimg\histimg\histimg.cpp(11) : fatal error C1083: Cannot open include file: 'histogram.h': No such file or directory

    Make sure that 'histogram.h' is in the same directory of 'histimg.cpp' file, or that 'histogram.h' is in a directory in the include path. You can add new directories to the include path using:

    Project Properties | Configuration Properties | C/C++ | General | Additional Include Directories
     Giovanni

    Monday, January 3, 2011 8:25 AM