The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Problems with linking
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

5*10

Germany
Posts

Posted - 08/30/2005 :  03:43:32 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7G SR4 v.7.0552
Operating System: win 2k

Hi,

I write a code in OriginC and it works well. I call this written functions with labtalk.
In Labtalk I first compile my OriginC file with the following line

run.LoadOC(Filepath\Filename.c);
the functions are compiled(I can see this in the codeBuilder), but I can't use the functions, because their not linked. If I press the compile Button in Codebuilder followed message is plot:

Linking...
Done!
No changed files found. Choose Rebuild All if you want to
recompile anyway.
After this I can use the functions. I now suppose that my Labtalk command is able to compile, but not able to link my functions.

Is there anybody who know the solution of this problem?

Greets 5*10

easwar

USA
1965 Posts

Posted - 08/30/2005 :  09:53:33 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi 5*10,

The default for run.loadoc() is that the file is loaded, compiled and linked.

Note that this method returns a value that you can check, such as:
i=run.LoadOC(Filepath\Filename.c);
i=;
to see if there was an error.

Also there are options to force a rebuild. See the Programming Help file and the section:
Programmatically Compiling and Linking
for more details.

Easwar
OriginLab


Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000