Hello,
are you sure your error appears at run time ?
I think the error you get is at LINK time.
When you create a C / C++ program, you got 2 steps before running you program :
First, the source code is turned into object code so that the cpu can understand it. This is the compilation step.
Then, your program is linked to external libraries or modules. Basically, it's a way to tell to your program where it can find the functions that he calls but that aren't implemented in itself. For example, to use printf() function, your program must be linked to the standard C library.
In your case, the linker tells you that :
- in the main() function, you called a function named myRecover
- he knows how to call it (parameters, ...) because you typed the function's prototype at the beginning
- he don't know in which file he can find the executable where this function is implemented
To make your program work, you must :
- compile your source file above
- compile the source file where myRecover is implemented
- link them together between execution.
The way to specify link options and library is different for every development tool.
Which platform and development tool do you use ?
MS Visual Studio, Borland, Dev-C++, ... ?
On Windows, Linux, ... ?
Main Topics
Browse All Topics





by: KrapPosted on 2003-01-17 at 05:30:29ID: 7747720
Hello,
are you sure your error appears at run time ?
I think the error you get is at LINK time.
When you create a C / C++ program, you got 2 steps before running you program :
First, the source code is turned into object code so that the cpu can understand it. This is the compilation step.
Then, your program is linked to external libraries or modules. Basically, it's a way to tell to your program where it can find the functions that he calls but that aren't implemented in itself. For example, to use printf() function, your program must be linked to the standard C library.
In your case, the linker tells you that :
- in the main() function, you called a function named myRecover
- he knows how to call it (parameters, ...) because you typed the function's prototype at the beginning
- he don't know in which file he can find the executable where this function is implemented
To make your program work, you must :
- compile your source file above
- compile the source file where myRecover is implemented
- link them together between execution.
The way to specify link options and library is different for every development tool.
Which platform and development tool do you use ?
MS Visual Studio, Borland, Dev-C++, ... ?
On Windows, Linux, ... ?