Re: #ifndef main

2008-08-02 Thread sh . vipin
On Jul 25, 10:11 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Thanks a ton both of you Bernd and Paul ! Yes indeed I found that the > word main was replaced by an empty string. Problem fixed ! pre processing always the first step to happen and single pass just for experiments do the follow

Re: #ifndef main

2008-07-25 Thread awhan.i...@gmail.com
Thanks a ton both of you Bernd and Paul ! Yes indeed I found that the word main was replaced by an empty string. Problem fixed ! ___ help-gplusplus mailing list help-gplusplus@gnu.org http://lists.gnu.org/mailman/listinfo/help-gplusplus

Re: #ifndef main

2008-07-25 Thread Bernd Strieder
Hello, [EMAIL PROTECTED] wrote: > I have two files and the contents are as follows : > > file :: main.h > - > #define main > -- > file :: main.cpp > - > #include "main.h" > > int main(v

Re: #ifndef main

2008-07-25 Thread Paul Pluzhnikov
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > file :: main.h > - > #ifndef main > #define main That is not a very smart thing to do ... > May somebody please shed some light on this ? Run 'g++ -E main.cpp' before and after your fix, and compare results.