LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-02-2006, 09:55 AM   #1
manikan
LQ Newbie
 
Registered: Feb 2006
Posts: 12

Rep: Reputation: 0
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.
 
Old 03-02-2006, 10:40 AM   #2
FLLinux
Member
 
Registered: Jul 2004
Location: USA
Distribution: Fedora 9, LFS 6.3, Unbuntu 8.04, Slax 6.0.7
Posts: 145

Rep: Reputation: 15
Could you post how you compile this?
 
Old 03-02-2006, 10:41 AM   #3
aluser
Member
 
Registered: Mar 2004
Location: Massachusetts
Distribution: Debian
Posts: 557

Rep: Reputation: 43
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ld linker errors Ankit mittal Programming 1 09-30-2005 03:05 PM
ld linker error Ankit mittal Programming 2 09-30-2005 07:40 AM
linker errors -please help MarcReing Programming 1 07-20-2005 07:44 AM
problems with linking objects -- must know some nasm\ASM\linker Paul6253 Programming 1 10-26-2004 08:33 PM
is it a better idea to migrate from the latest apache 1.3 to the latest apache 2.0? kublador Slackware 5 08-30-2004 04:06 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration