Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem in calling strtoll function in stdlibex.h

4 views
Skip to first unread message

km9394

unread,
Jul 15, 2008, 7:40:16 AM7/15/08
to
Hi all, I encounter a problem when migrating my software, which using inifile instrument. I found problem in stdlibex.h and have the following error in compile:2 Project link errorsUndefined symbol '_strtoll' referenced in "inifile.obj"Undefined symbol '_strtoull' referenced in "inifile.obj"then I try using strtoll function in a separate new project as attached, and found the below error:1 Project linke errorUndefined symbol '_strtoll' referenced in "TryStdlibex.c"I re-install LabWindows/CVI and still get the problem.May anyone help?Thanks in advance.


TryStdlibex2.zip:
http://forums.ni.com/attachments/ni/180/36810/1/TryStdlibex2.zip

km9394

unread,
Aug 13, 2008, 7:10:11 AM8/13/08
to
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 


toolbox.zip:
http://forums.ni.com/ni/attachments/ni/180/37235/1/toolbox.zip

LuisG

unread,
Aug 13, 2008, 1:10:14 PM8/13/08
to
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 Message Edited by LuisG on 08-13-2008 12:05 PM
0 new messages