i just had written a small sample program, i compiled it there are no error wen i try to run the program am getting the error as (linking error: unable to open file sample.exe)
can u pls let me knw wat do
Is there by any chance a window open on your machine from a previous run of this program? If so, close it. The compiler wants to write over sample.exe but the file is open in another process.
The only way sample.exe can't be opened by turbo C++, is that it is already open. Turbo C++ needs to write on the file. To do that, no other application can have the file open.
There can be multiple readers and the file will open. But there can only be one writer.
Comment