LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Linker is linking to the latest compiled changes (https://www.linuxquestions.org/questions/programming-9/linker-is-linking-to-the-latest-compiled-changes-420953/)

manikan 03-02-2006 09:55 AM

Linker is linking to the latest compiled changes
 
Hi,

I have created a .C and .H.The .C file contains a function.The primary role of these files are to return a string when the function is called.Two days before these functions were returning the appropriate strings as per my requirment.

But to my shock i found today that whatever changes i made yesterday it was not reflected.The problem is when this function is called from main,either the function is not called or the linker didnot link the file.

As far as i have seen,during compilation it picks up my .C and .H file.I wonder how a properly working code has gone out of box in two days.

Any help regarding this issue would help me a lot.

FLLinux 03-02-2006 10:40 AM

Could you post how you compile this?

aluser 03-02-2006 10:41 AM

What commands are you using to compile and link your code? Can you give a more precise description of what you did, what you expected to happen, and what happened?

So far I gather that you think the compiler or linker didn't see a new version of your file, which of course it should, but I don't think there's enough information to debug your problem :scratch:


All times are GMT -5. The time now is 09:56 AM.