Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have written a program which not giving any compile time error but when I run program it gives the following error:-

Linker Error: Unable to open file 'Maths.lib'

what is the meaning of this error...
Posted
Comments
BrainlessLabs.com 23-Dec-11 9:47am    
What compiler are you using?

In the linker options, you have to specify the libraries you need.
If you are you using Turbo C++, then have a look at this forum post[^] (a similar problem with the graphics library).
 
Share this answer
 
Hi,

The link error usually occur when a particular library is not added to your project,and the compiler is trying to use a functionality which is defined in that library. In your case may be "Maths.lib" is missing from your project. If it already included make sure the path is correct.

Thanks
 
Share this answer
 
Comments
CurrentlyBE 23-Dec-11 9:33am    
But I have not use any maths related function in the program.
So can it be a case that the maths.lib file is corrupted or not present.
Satheesh1546 23-Dec-11 9:35am    
do u included that library to your project?
chandanadhikari 23-Dec-11 11:11am    
hi,
it does not matter if you are trying to do some calculations in your code or not,
just #include<maths.h> can give the error because of the reason you also suspect i.e. either the file is corrupt or not present in the location which is given to the linker.try to comment that #include and see if it runs or not.
CurrentlyBE 24-Dec-11 0:08am    
I am not understanding what exactly shall I write in #include statement
CurrentlyBE 24-Dec-11 0:08am    
Should I post that program it is same as of my earlier question.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900