954,492 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

No source available for a function

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()"

int f1(a1,a2){
         //some description here
}
int main (){
     //call f1 here....program stops debuggin with the above specified error.
}
vishalag
Newbie Poster
9 posts since Jun 2009
Reputation Points: 10
Solved Threads: 0
 

post actual code

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

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.

vishalag
Newbie Poster
9 posts since Jun 2009
Reputation Points: 10
Solved Threads: 0
 

>[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.

siddhant3s
Practically a Posting Shark
816 posts since Oct 2007
Reputation Points: 1,486
Solved Threads: 140
 

yes..I am doing that exactly right now


btw statement was "Dear ancient draggon"

vishalag
Newbie Poster
9 posts since Jun 2009
Reputation Points: 10
Solved Threads: 0
 

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?

Narue
Bad Cop
Administrator
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
 

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.

vishalag
Newbie Poster
9 posts since Jun 2009
Reputation Points: 10
Solved Threads: 0
 

It's not an error at all. It's a simple info message. Fill the difference.

ArkM
Postaholic
2,001 posts since Jul 2008
Reputation Points: 1,234
Solved Threads: 348
 

Dear ArKM
I wish it would have been infor. But debug terminates at that point without any output.

vishalag
Newbie Poster
9 posts since Jun 2009
Reputation Points: 10
Solved Threads: 0
 

Sorry, I have not noticed that you are in ubuntu environment...
It's not a problem in the Visual Studio debugger.

ArkM
Postaholic
2,001 posts since Jul 2008
Reputation Points: 1,234
Solved Threads: 348
 

Even though you haven't told us all of your situation, I surmise the problem is when you come to a function from a library that you did not write. When you get to that function, Just execute it (don't step into it).

WaltP
Posting Sage w/ dash of thyme
Moderator
10,505 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944
 

Hi

I figured out that I do not have a header file for the function. The function is just written inside a .c file which is included in the building directory.
Can that be a source of error??
I am sorry I dont have that much time to check it by creating a new project.
Any ideas, great people of forum..

vishalag
Newbie Poster
9 posts since Jun 2009
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You