Click here to Skip to main content
15,885,365 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I keep getting this error when I try running a code that I wrote in Qt.
I have attached the link to the screenshot of the error.
The screenshot of the error
Link to the code repository: GitHub - UA12/Stopwatch[^]

What I have tried:

I have been trying to understand what the problem is but haven't been able to do so since I am new to Qt.
Posted
Updated 29-Nov-18 0:24am
v2

This error is not unique to Qt or any other framework. It is a linkage error meaning the methods noted can not be found. Often you will think you have the method implemented for a class but your function signature differs from the header's definition. It appears that you need to correctly implement secChanges, minChanges, and hrsChanges.
 
Share this answer
 
Comments
UA12 29-Nov-18 6:27am    
Can you please help me detect the error. I am attaching the Github link.
https://github.com/UA12/Stopwatch
As Rick stated, this is a common linker error about missing methods.
Now, looking at your code, you defined onsecChanges, onminChanges and onhrsChange methods, but you are apparently calling (see the error messages) secChanges, minChanges and hrsChanges. Can you spot the name mismatches? You have to add a 'on' to the method calls.
 
Share this answer
 
v3
Comments
UA12 29-Nov-18 3:10am    
Thankyou very much
CPallini 29-Nov-18 3:28am    
You are welcome.
UA12 29-Nov-18 6:14am    
This is the link to my GitHub repository for the code. Can You please detect the error.
https://github.com/UA12/Stopwatch
This kind of linker error are the result of missing implementation of these functions. Often is missing implementation, some typo or wrong scope (class or private) the reason. Goto to the place where the functions are implemented and fixit.
 
Share this answer
 
Comments
UA12 29-Nov-18 6:20am    
Can you please help, I am attaching the GitHub repository link. I will be great full.
https://github.com/UA12/Stopwatch

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