Thread View: alt.comp.lang.learn.c-c++
5 messages
5 total messages
Started by ken bouchard
Mon, 04 Dec 2000 00:00
libraries
Author: ken bouchard
Date: Mon, 04 Dec 2000 00:00
Date: Mon, 04 Dec 2000 00:00
12 lines
1213 bytes
1213 bytes
The Borland compiler I downloaded (the free one) came with an INCLUDE folder and a LIB folder. The INCLUDE folder contains lots of header files in text format,things like IOSTREAM.H that you #include in your source file. The LIB folder appears to have a lot of compiled files (they AREN'T in text format) My question is: Are those .lib files actually class definitions? Are those .h files class declarations? Do those two folders (INCLUDE and LIB) constitute what's called the "basic C++ library? All the FAQS and other stuff I've read don't really explain this. thanks, Ken
Re: libraries
Author: John Harrison
Date: Tue, 05 Dec 2000 06:16
Date: Tue, 05 Dec 2000 06:16
37 lines
2377 bytes
2377 bytes
"ken bouchard" <bouchard@codenet.net> wrote in message news:3a2c6bf3@news... > The Borland compiler I downloaded (the free one) came with an INCLUDE folder > and a LIB folder. The INCLUDE folder contains lots of header files in text > format,things like IOSTREAM.H that you #include in your source file. The LIB > folder appears to have a lot of compiled files (they AREN'T in text format) > My question is: Are those .lib files actually class definitions? That's more or less it, the libraries will also include a lot of functions that aren't part of any class. > Are those > .h files class declarations? Again, function declarations too. > Do those two folders (INCLUDE and LIB) > constitute what's called the "basic C++ library? All the FAQS and other > stuff I've read don't really explain this. I'm not familar with the Borland compiler but I'd imagine that what you're looking at is the standard C++ library. I'd also imagine that Borland include a lot of their own compiler specific stuff. john > > thanks, > > Ken > > > >
Re: libraries
Author: brianchon
Date: Tue, 05 Dec 2000 06:41
Date: Tue, 05 Dec 2000 06:41
45 lines
2727 bytes
2727 bytes
> The Borland compiler I downloaded (the free one) came with an INCLUDE folder > and a LIB folder. The INCLUDE folder contains lots of header files in text > format,things like IOSTREAM.H that you #include in your source file. The LIB > folder appears to have a lot of compiled files (they AREN'T in text format) > My question is: Are those .lib files actually class definitions? Unlike Java, there are not any class defs in a lib file, a lib file is merely a collection of obj files (not C++ object, but binary machine code and data segmented with tags for linking and relocation purpose), a lib isn't even relevant to C++, it could be generated by other language compilers (such as Assembler, C, Pascal, FORTRAN, etc.) > Are those > .h files class declarations? In C++, class defs can appear in any text file as long as you include them into the compilation, a .h file usually means the src code segments that the programmer wants to share among different compilations, you can put any legal C++ src code in it. Since a definition can only appear once in a linkage, they can't be included in more than one compilation of the same linkage, but declarations are not generating real code objects, so they can be include among compilations of the same linkage. So you'd be better separate declarations and definitions, former in .h files and latter in .cpp files. >Do those two folders (INCLUDE and LIB) > constitute what's called the "basic C++ library? All the FAQS and other > stuff I've read don't really explain this. > > thanks, > > Ken > > ------------------------ brianchon ------------------------ Please remove ".---" from my email address when reply to this message.
Re: libraries
Author: John Harrison
Date: Tue, 05 Dec 2000 06:46
Date: Tue, 05 Dec 2000 06:46
37 lines
2381 bytes
2381 bytes
"ken bouchard" <bouchard@codenet.net> wrote in message news:3a2c6bf3@news... > The Borland compiler I downloaded (the free one) came with an INCLUDE folder > and a LIB folder. The INCLUDE folder contains lots of header files in text > format,things like IOSTREAM.H that you #include in your source file. The LIB > folder appears to have a lot of compiled files (they AREN'T in text format) > My question is: Are those .lib files actually class definitions? That's more or less it, the libraries will also include a lot of functions that aren't part of any class. > Are those > .h files class declarations? Again, function declarations too. > Do those two folders (INCLUDE and LIB) > constitute what's called the "basic C++ library? All the FAQS and other > stuff I've read don't really explain this. I'm not familar with the Borland compiler but I'd imagine that what you're looking at is the standard C++ library. I'd also imagine that Borland include a lot of their own compiler specific stuff. john > > thanks, > > Ken > > > >
Re: libraries
Author: Donovan Rebbechi
Date: Tue, 05 Dec 2000 07:36
Date: Tue, 05 Dec 2000 07:36
18 lines
1597 bytes
1597 bytes
On Mon, 4 Dec 2000 21:15:37 -0700, ken bouchard wrote: >My question is: Are those .lib files actually class definitions? Are those The lib files are the compiled libraries. >.h files class declarations? Yes. > Do those two folders (INCLUDE and LIB) >constitute what's called the "basic C++ library? They include it as a subset. There are also some nonstandard Windows extensions and UNIX compatibility headers. -- Donovan Rebbechi * http://pegasus.rutgers.edu/~elflord/ * elflord at panix dot com
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads