|
From: Vlada D. <dj...@im...> - 2003-02-25 13:58:52
|
I'd like to thank everybody for help. You're great, thanks! ----- Original Message ----- From: "Teodorescu Cristian" <te...@xt...> To: "Dev-C++ Mailing List" <dev...@li...> Sent: Wednesday, September 25, 2002 10:07 AM Subject: Re: [Dev-C++] need some explanation > Vlada Djurovic wrote: > > >Hi, everybody > >I hope someone can explain this to me. When I write this: > > > >#include <iostream> > >#include <stdlib> > > > >using namespace std; > > > >I get error like "stdlib: No such file or directory". > >When I write like this: > >#include <iostream> > >#include <stdlib.h> > > > >using namespace std; > > > >everything is fine. I thought that with "using namespace" you don't have > >specify file extension. Why does the compiler complain only about stdlib > >without .h? Can somebody please explain this? > > > > > In c++ you have libraries like <iostream> old name was <iostream.h> and > in C++ 98 standard was renamed. > on the other hand stdlib.h is not a c++ standard library is a C standard > so his name remains the same because C standard has .h names > In other words : > iostream is a C++ stadard library > stdlib.h is a C standard library > becarefull at string > <string> contains class string > <string.h> contains C like functions for manipulating strings > My sugestions: > 1:Use only one set of libreries like either from C++ or from C never > mixed up especialy when you use pointers. > 2:Take a look at a C++ standard and the diff betwen C and C++ > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |