LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   [Maybe redundant] main.cpp:1:18: warning: extra tokens at end of #include directive (https://www.linuxquestions.org/questions/programming-9/%5Bmaybe-redundant%5D-main-cpp-1-18-warning-extra-tokens-at-end-of-include-directive-247396/)

pycoucou 10-26-2004 04:44 AM

[Maybe redundant] main.cpp:1:18: warning: extra tokens at end of #include directive
 
Hi there,

I am doing some c++ and my program is working quite fine. Unfortunately, my compilation is giving me this warning.

main.cpp:1:18: warning: extra tokens at end of #include directive

I know it's just a warning but I am sure it can be easily fixed. However, I don't understand it. Probably my header files are not 'written' properly (at least for gcc 3.2.2 under RH9.2). I haven't found something relevant on gooooooogle even if this warning seems to upset quite a lot of people.

If you know how to fix it, thanks very much for letting me know. By the way, what does "main.cpp:1:18" mean? line 18 of sth? what? the #include number 1?

Regards,
PY

jlliagre 10-26-2004 05:10 AM

I guess it is line number one, 18th character.

It would help if you show us your program's first lines.

pycoucou 10-26-2004 09:57 AM

Tks you... It was a stupid ;

I am too slow ;-)
But tks for the meaning of the second numbers... Now I can get rid of the stupid charaters I added.


All times are GMT -5. The time now is 07:12 AM.