473,395 Members | 1,652 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

linking error: unable to open file sample.exe

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
Jul 2 '13 #1
5 4952
weaknessforcats
9,208 Expert Mod 8TB
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.
Jul 2 '13 #2
no i didnt open any window i had tried a lot i closed al the turbo c++, wrote a smal sample program again but still same error
Jul 2 '13 #3
weaknessforcats
9,208 Expert Mod 8TB
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.
Jul 2 '13 #4
donbock
2,426 Expert 2GB
When you say "try to run it", what exactly are you doing?
What buttons are you pressing; what commands are you typing?

I ask because I would not expect "linking error" to be run-time error.
Jul 2 '13 #5
Open your code in turbo c++ and press ctrl+f9
Jul 3 '13 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Paul | last post by:
Hi, I am using .NET 2003 (7.1.3088 Framework 1.1.4322) on Windows Server 2003. After I installed BizTalk 2004 on same machine I was not able to open web project. Error: "Unable to open Web...
0
by: bazzer | last post by:
hey, i am using visual basic.net 2003 and have an ASP.NET webform application thats accessing a microsoft access 2003 database. i kept getting the following error when i tried to run it: ERROR ...
4
by: Sanjay Kumar | last post by:
Folks ! I am working with VC++ after a long time and having problem linking latest xerces 2.7 in VC++ 2005 Express Edition. I have done following: 1. downloaded and unpacked the the...
0
by: bazzer | last post by:
hey, im trying to access a microsoft access database from an ASP.NET web application in visual basic 2003.NET. i get the following error when i try running it: Server Error in...
1
by: bhushan11 | last post by:
hello sir i am searching in your site but i dont get how to place question about visual c++. so i am post this vc++ question in .net , sorre about that i am working on visual c++ lang. but i...
7
by: bajichuan | last post by:
Hello! I have the world's strangest linking error, and I'm hoping that someone can help me sort it out. I recently installed and compiled a library called LinBox without a problem. I have an...
1
by: sujataanuj | last post by:
when I run a program written in c I got an error message as linking error : unable to open file cos.obj.
5
by: vshalpatel | last post by:
Hi I want to use SQL*Loader , an Oracle-supplied utility to load data from a flat file into one database tables. for this I have write the scripts in the SQL*LOADER control file named ...
3
by: curious2007 | last post by:
#include "chartdir.h" int main(int argc, char *argv) { // The data for the bar chart double data = {85, 156, 179.5, 211, 123}; // The labels for the bar chart const char...
15
by: Amjad Ali | last post by:
What is "linker error : Unable to open the file ' TCLASSS.LIB' " ? How can I correct it?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.