By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,189 Members | 2,167 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,189 IT Pros & Developers. It's quick & easy.

how to remove a linker error .exe file not found

P: 5
Can anybody tell me how to remove the linker error as mentioned above..
i have created a simple program in C++ as given below
Expand|Select|Wrap|Line Numbers
  1. #include<iostream.h>
  2. #include<conio.h>
  3. class ABC
  4. {
  5.     private:
  6.     int a;
  7.     public:
  8.     void show()
  9.     {
  10.         cout<<"enter value of a:";
  11.         cin>>a;
  12.         cout<<"a="<<a;
  13.     }
  14. };
  16. void main()
  17. {
  18.     ABC a;
  20.     getch();
  21. }
i saved it with name ABC.cpp.after compiling above program, it shows no errors, that means it get compiled successfully. but when I try to run this program it shows a Linker error ABC.exe file not found.

Please help me out whats the problem and how to remove it....
Aug 10 '08 #1
Share this Question
Share on Google+
7 Replies

Expert Mod 5K+
P: 8,916
I am not convinced that it does what you have said "Can not find ABC.exe" is a system error not a linker error. In fact the linker error is probably that you didn't run the linker by the sounds of it.

However all of this could have been easily sorted out if you had posted your actual command lines the output of those commands copied and pasted verbatim.
Aug 10 '08 #2

Expert 100+
P: 2,398
What are the contents of your directory after you run the compiler (especially ABC.*)?
Aug 10 '08 #3

P: 5
error is exactly as I said before..
Linker Error:ABC.exe File not found
Aug 10 '08 #4

Expert Mod 5K+
P: 8,916
You still have not posted the requested information, while you are about it you could tell us what tool-chain (compiler) and platform you are using.
Aug 10 '08 #5

Expert Mod 5K+
P: 9,197
You should be using <iostream> and not <iostream.h>.

<iostream.h> is the pre-ANS C++ and has been obsolete since 1998.

Then, are you sure you produced a .exe file. As I recall, various compilers produce a .out file.
Aug 10 '08 #6

P: 5
problem has been resolved thanx..
Aug 11 '08 #7

P: 1
please help me....i have the same problem
Feb 7 '17 #8

Post your reply

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