Thread: Help please
View Single Post
Old Sep 4th, 2005, 1:42 PM   #9
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
The declarations (prototypes) serve as a description so that the compiler may check for correct usage. They are normally found in the header files. The code you need (the definitions) are rarely there. They are normally in library files. Your compilation may succeed if the headers are found, but the link step will fail the the actual code, as carried in library files, is not found. The locations of both of these types of files can be specified on the compiler/linker's command line or, if you are using an IDE, in the IDE's options/preferences areas.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline