Results 1 to 1 of 1
Presently i am using linux ubuntu 10.10 version,working with programming on Netbeans IDE.
I had a piece of sample code,addition of two numbers.
I executed this code in 2 ways.
...
- 04-26-2011 #1Just Joined!
- Join Date
- Apr 2011
- Posts
- 0
inline function not working with multiple files on Ubuntu
Presently i am using linux ubuntu 10.10 version,working with programming on Netbeans IDE.
I had a piece of sample code,addition of two numbers.
I executed this code in 2 ways.
First writing the whole code in a single file and declared a function as INLINE
and Second i took 3 files main.c,add.c and add.h for the same and decalred the funtion INLINE.
Now the problem is that the functionality of inline works good for the first case but not with tha second case.
I could not fix this and not able to trace the root cause.
can you please suggest me regarding this issue to fix it?
My problem is,if function is defined iline using multiple files,the inline functionality is not working.If it is used for a single file its working good.
I am working on Ubuntu using the tool Netbeans IDE.
I declared the function inline and used gcc compile options following the process in the tool,
Window->Debugging->Disassembly
the above process will give us an assembly instruction file which shows us if the function is inlined or not.I have followed this process and was stuck here and could not trace what the problem was.


Reply With Quote
