[Dev-C++] [Linking error] undefined reference
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Mic W. <wag...@ya...> - 2005-04-13 14:39:42
|
Greetings I am trying to compile a c++ file main.cpp and is getting an error [Linking error] undefined reference to Get(). main.cpp has an instruction to include a file Random1.h. The later gives the prototypes of Get(). The function itself is defined in Ramdom1.cpp I have two questions: 1- How do I link the file Random1.cpp 2-Is there a way to use something shorter than the long directive #include <C:\Documents and Settings\Gerard\Desktop\Math_home\Joshi\Test\Random1.h> Because, if I am working on a lot of files it becomes tedious. May be there is a way to tell the system where to look for files. --------------------------------- Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. |