No source available for a function

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Jun 2009
Posts: 9
Reputation: vishalag is an unknown quantity at this point 
Solved Threads: 0
vishalag vishalag is offline Offline
Newbie Poster

No source available for a function

 
0
  #1
Jun 15th, 2009
Hi

I am using eclipse under ubuntu for my work. I am calling a function with specified arguments. It builds correctly but while debugging it stops at the call giving the error as "no source available for function()"

  1. int f1(a1,a2){
  2. //some description here
  3. }
  4. int main (){
  5. //call f1 here....program stops debuggin with the above specified error.
  6. }
Last edited by vishalag; Jun 15th, 2009 at 11:52 am. Reason: Used tab for spacing..good programming habits
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,358
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1464
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: No source available for a function

 
0
  #2
Jun 15th, 2009
post actual code
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 9
Reputation: vishalag is an unknown quantity at this point 
Solved Threads: 0
vishalag vishalag is offline Offline
Newbie Poster

Re: No source available for a function

 
0
  #3
Jun 15th, 2009
Dear "Ancient Dragon" [wow I am still laughing at my opening statement]

Actually I am not supposed to give actual code in any form outside my workplace..as mentioned in my agreement with the company. I am very sorry for this. But can you help me figure out what problems might cause this error.
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 792
Reputation: siddhant3s has much to be proud of siddhant3s has much to be proud of siddhant3s has much to be proud of siddhant3s has much to be proud of siddhant3s has much to be proud of siddhant3s has much to be proud of siddhant3s has much to be proud of siddhant3s has much to be proud of siddhant3s has much to be proud of siddhant3s has much to be proud of 
Solved Threads: 135
siddhant3s's Avatar
siddhant3s siddhant3s is offline Offline
Master Poster

Re: No source available for a function

 
0
  #4
Jun 15th, 2009
>[wow I am still laughing at my opening statement]
Which statement?

Anyways, it would be very tough to troubleshoot if your code is sacred. Try to produce similar code which causes similar error then post it.

Saying anything without code would be senseless.
Siddhant Sanyam
(Not posting much)
Migrate to Standard C++ :When to tell your C++ Code is Non-Standard.
Please Read before posting: How To Ask Questions The Smart Way
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 9
Reputation: vishalag is an unknown quantity at this point 
Solved Threads: 0
vishalag vishalag is offline Offline
Newbie Poster

Re: No source available for a function

 
0
  #5
Jun 15th, 2009
yes..I am doing that exactly right now


btw statement was "Dear ancient draggon"
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,622
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 714
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: No source available for a function

 
0
  #6
Jun 15th, 2009
Are you running in the debugger and it's stopping automatically? Or are you stepping through your code and getting this message when you try to step into the function? Your error sounds a lot like missing debug information during the build, not a problem with the code itself. Does the code run without error outside of the debugger?
I'm here to prove you wrong.
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 9
Reputation: vishalag is an unknown quantity at this point 
Solved Threads: 0
vishalag vishalag is offline Offline
Newbie Poster

Re: No source available for a function

 
0
  #7
Jun 15th, 2009
Exactly
I am in debugger and then while debugging it stops automatically giving those errors.
I also believe that this is due to missing debug information during the build ..but dont know how to fix it.
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 2,001
Reputation: ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of 
Solved Threads: 343
ArkM's Avatar
ArkM ArkM is offline Offline
Postaholic

Re: No source available for a function

 
0
  #8
Jun 15th, 2009
It's not an error at all. It's a simple info message. Fill the difference.
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 9
Reputation: vishalag is an unknown quantity at this point 
Solved Threads: 0
vishalag vishalag is offline Offline
Newbie Poster

Re: No source available for a function

 
0
  #9
Jun 15th, 2009
Dear ArKM
I wish it would have been infor. But debug terminates at that point without any output.
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 2,001
Reputation: ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of 
Solved Threads: 343
ArkM's Avatar
ArkM ArkM is offline Offline
Postaholic

Re: No source available for a function

 
0
  #10
Jun 15th, 2009
Sorry, I have not noticed that you are in ubuntu environment...
It's not a problem in the Visual Studio debugger.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC