delorie.com/archives/browse.cgi | search |
Xref: | news-dnh.mv.net comp.os.msdos.djgpp:2857 |
Newsgroups: | comp.os.msdos.djgpp |
Path: | news-dnh.mv.net!mv!news.sprintlink.net!newsfeed.internetmci.com!EU.net!sun4nl!cs.vu.nl!rjvdboon |
From: | rjvdboon AT cs DOT vu DOT nl (Boon van der RJ) |
Subject: | Re: Can't inlcude C++ headers |
Nntp-Posting-Host: | galjoen.cs.vu.nl |
References: | <46l5nv$bol AT netnews DOT nctu DOT edu DOT tw> |
Sender: | news AT cs DOT vu DOT nl |
Organization: | Fac. Wiskunde & Informatica, VU, Amsterdam |
Date: | Thu, 26 Oct 1995 08:44:12 GMT |
Lines: | 16 |
To: | djgpp AT sun DOT soe DOT clarkson DOT edu |
Dj-Gateway: | from newsgroup comp.os.msdos.djgpp |
Worm (u8313511 AT cc DOT nctu DOT edu DOT tw) wrote: : Do I need to use gpp to compile my code? : Because when I using gcc to complile code, it says can't find : iostream.h, etc. : my environment is all right.. I sure, because the : c header files can be find and processed correctly. You should name your C++ files: <filename>.cc " " " " C " : <filename>.c gcc recognizes the kind of language by the files 's extension. .c for c files, ..cc for c++ files, and with that the proper include-file locations. (And with a c++ file, don't forget to include libgpp (by adding -lgpp as the last argument in the command-line))
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |