|
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.
|