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
 Sudden Error while compiling OriginC Code
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

AndiDC

Germany
Posts

Posted - 08/31/2006 :  08:31:01 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 75G SR 6
Operating System: Win XP Pro SP2

Hi,
although here in the forum were similar problems,
I need help with the following problem:
In my Origin C code I use the function ImportFile from
FileImport.h / .c from the OriginLab folder. The function
worked fine until Origin crashed with no special reason
while I was using my project as every day.
Now If I want to compile the project that worked well many
times, I get an error that Linking can't be done, because
The function ImportFile was used, but its body could not
be found.
I tried the following things to solve the problem, but nothing
helped:
- Included the FileImport.c and .h in my workspace, then an error occured with the iwGetFilter function which can't be found in any file supplied with Origin
- Replace FileImport.h with an older version
- Tried to Repair Origin installation
- Uninstalled Origin, deleted all Origin folders and installed it again

Has anybody an idea what I can do to solve thiy annoying problem?



Edited by - AndiDC on 08/31/2006 09:32:06 AM

Deanna

China
Posts

Posted - 08/31/2006 :  9:49:12 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Andi. Would you mind sending your program to tech@originlab.com? It will be easier for us to understand what has happened.

Deanna
OriginLab GZ Office
Go to Top of Page

AndiDC

Germany
Posts

Posted - 09/01/2006 :  02:44:32 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,
actually the problem was solved by shutting down my Computer yesterday
and booting again this morning. I changed nothing, but it worked fine
today.
Hopefully this strange behaviour doesn't occur again, because it stopped my work for almost a whole day...



Go to Top of Page

Deanna

China
Posts

Posted - 09/01/2006 :  03:03:35 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Great to hear that it is working now! :-)



Deanna
OriginLab GZ Office
Go to Top of Page

ESD Michi

Albania
Posts

Posted - 09/14/2006 :  09:05:44 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi All,

I have the same problem. Neither Re-Boot, nor Re-Installing(!) has helped till now.^
Yesterday the first test worked fine. Today nothing. Here the very simply code of today's test. (Yesterday it was more code of course)
Below the error.

#include <..\OriginLab\FileImport.h>
#include <wksheet.h>

void hugo1()
{ WorksheetPage wps;
string file1, file2;
file1 = GetOpenBox();
file2 = GetOpenBox();
printf("Hi");
int ret = ImportFile(wps, file1, file2);
}

hugo.cpp(44) :Error, Function ImportFile@HACDACCAACCAHA was called, but its body could not be located during linking.

I do not have any further idea what to do.

Update: Include FileImport.c in my Workspace just "shift" the problem to a "somehting @aaaa" now in FileImport.c could not be located.
So it seems to me that Origin does not know where to find the .c files?!
BR Michi


Edited by - ESD Michi on 09/14/2006 10:01:32 AM
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 09/14/2006 :  10:27:22 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
If you open and close the Import Wizard your function will then compile ok. Therefore, more files are needed in CodeBuilder's workspace but I haven't figured out which yet. Files in FileImport.ocw are not enough.

...ImportWiz.ocw works. Try this before compiling your file... run.loadOC("OriginLab\ImportWiz.ocw")

(Except for the missing integer argument in the ImportFile function.)

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 09/14/2006 10:42:41 AM
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