|
From: Per W. <pw...@ia...> - 2007-12-11 22:17:11
|
No, there is no zip file enclosed. On the other hand: how many people do you think bother to look at attached zip files? Try to manage with just text descriptions of problems, and wait with attachments until someone requests it. Anyway, you must add the gcd.cpp file to your project, so that it gets compiled and linked. The header files are just there to inform the compiler about available symbols and data types. Including a header file will not inform the linker what object files that are needed to build the application. /pwm On Tue, 11 Dec 2007, dan...@li... wrote: > Good evening everybody, > > i have a problem with the mailing list of Dev-C++ and also with this program. I'm a C++ student and In my book the gcd.cpp is an external file from header file localmath.h but if i try to compile the prova.cpp i receive a linker error for undefined link to gcd function., otherwise if i put the gcd definition inside the localmath.h as the abs function everything is correct. Could anyone explain me why? and how could i use the gcd function defined externaly from localmath.h without an error? > > the programs are in the zip file enclosed. > > thanks very much to everybody > > Danilo > > > > |