Re: Header File (with' -' symbol)



saran.jegan@xxxxxxxxx wrote:

In my C program am using some header file name with cgi-lib.h, cgi-
llist.h.... am getting some error like cant open cgi-lib.h (i checked
the path DIR) ,but when am change the name by removing the '-' symbol
its working well..what might be the reason for this ( compiler -
Borland )

I'd guess that there's no such header file as `cgi-lib.h` but
there is one called `cgilib.h`. Since neither name is part of
the standard, it's an implementation-specific or installation-specific
or user-specific detail. You don't show the actual #include
line and we don't know if your compiler has interesting rules
mapping header names to file names.

--
"There's a doorway where there was a wall" /Master Humpries Clock/

Hewlett-Packard Limited registered no:
registered office: Cain Road, Bracknell, Berks RG12 1HN 690597 England

.



Relevant Pages

  • Re: Confusing #ifdef
    ... don't use the save value in anyother header file in your project. ... I am not sure if VC++ 6.0 compiler handles this or not. ... #pragma once ... What effect is might there be in removing it? ...
    (microsoft.public.vc.mfc)
  • Re: header files
    ... As all code can be written in the header file ... > void foo() ... > compiler tries to compile main.c it eventually reaches the line ... > the compiler has never heared about a function called printf(). ...
    (alt.comp.lang.learn.c-cpp)
  • Re: include file question
    ... Where did you read that #pragma once is obsolete? ... because it suggests that what you need is some kind of weird compiler hack to make your ... inside the header file to prevent multiple execution of the contents. ... documentation about Objective C, which is a language which is NOT the C++ language, has ...
    (microsoft.public.vc.mfc)
  • Re: header files
    ... As all code can be written in the header file ... void foo() ... So when the compiler compiles ... the compiler has never heared about a function called printf(). ...
    (alt.comp.lang.learn.c-cpp)
  • Re: #include what?
    ... everyone did command line programming in something akin to a "shell". ... the compiler has to pick somewhere to look for the ... of a header file in the local directory and then hack it to override ... features of the old style that we lost with the modern interpretation. ...
    (comp.compilers)