|
From: Per W. <pw...@ia...> - 2007-12-12 11:11:41
|
When compiling, you should have a header file that contains the declaration for the gcd function. The actual implementation may be in a separate source file, but the compiler must be able to see return type and what parameters the gcd function takes. Do you have any book on C or C++ programming? Dev-C++ uses the MinGW compiler, but it doesn't matter what compiler is used. The requirements are specified by the language, not by the specific compilers. /pwm On Wed, 12 Dec 2007, dan...@li... wrote: > Sorry, i don't want to disturb, i apologize. > > I tried to add in a project the three files, but when i compile the project i have in output: > 26 C:\Documents and Settings\the piper\Desktop\programmi C++\prova.cpp `gcd' undeclared (first use this function) > > i know to solve the problem only putting the gcd function inside the header file, i don't know other solution. Do you? > > D > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |