07-15-2008 06:13 AM
07-15-2008 10:55 AM
08-13-2008 05:41 AM
Hello LuisG,
Sorry for no response for so long.
I am using LabWindows/CVI 8.5 already and I have removed the CVI 8.1 before installation.
The strange thing is I cannot even compile "C:\Program Files\National Instruments\CVI85\toolslib\toolbox" that come from CVI with the same error!
After I change to the two functions you mentioned, the same error persist. I attached the files i modified.
Please help
Thanks in advance
km9394
08-13-2008 12:05 PM - edited 08-13-2008 12:05 PM
This is very strange. It really is as if you were using an older version of the CVI compiler, instead of CVI 8.5. I assume that you have checked the Help>>About box to confirm that this CVI 8.5?
The problem is not with inifile.c. That file is expected to have references to strtoll. Let's try a couple of simpler tests:
1. Can you expand the "Libraries" tree in the bottom left of your workspace, and confirm that there is a "strtoll" function panel under ANSI C>>General Utilities>>String to Arithmetic Expressio?
2. In the CVI interactive window (or a completely new project) can you try to compile the following code:
#include <ansi_c.h>
static long long n;
n = strtoll ("9876543210", 0, 10);
Let me know what you find.
Luis
08-13-2008 11:30 PM
Thanks for reply. Here is my result
1. There is strtoll in the function tree.
2. There is no problem in interactive execution, i can run it.
But once I move those code to a new project, it show the error again:
1 Project link error
- Undefined symbol '_strtoll' referenced in "TryStdlibex.c'
It is really strange that once I move it to a project I cannot run the code anymore.
Thanks
08-14-2008 10:37 AM
So, essentially, you can use strtoll in the interactive window, but not in an actual project? Yeah, that's pretty strange.
Do you have access to a different computer where you could install CVI 8.5 and try the same thing? At this point, I suspect an installation problem, where somehow CVI is linking against a different version of cvi.lib file what is expected. Actually, you might want to also search your computer for all files named cvi.lib. There should be four of them found under the CVI85 installation folder, and no others. Assuming that that's the case, can you check and then let me know the date and size of CVI85\bin\msvc\cvi.lib?
Depending on what happens when you test it with a different installation of CVI, there are a couple of strategies we can then try, in order to continue narrowing this down.
Thanks for helping us figure this out!
Luis
08-15-2008 01:54 AM
Hi,km9394
I suggest you do the following steps:
1, delete the folder in your project folder named "cvibuild.YourProjectName"
2,rebuild your project
I encountered this problem as you once,and solved in this way, hope it wil work,
anyway, let me know the result or mail me (liang.chen@ni.com)
Topkins
08-15-2008 03:00 AM
Thanks for your help, LuisG
I have solved the problem by removing one cvi.lib, i think it is accidentally copied with the toolkit files.
Have a nice day
km9394