01-29-2013 09:39 AM
I have been working on running legacy software into windows 7 and CVI 2010 and have run into a issue I have yet to find a solution to. Software which compiles fine in CVI 8.1 is issuing undeclared identifiers for uintptr_t in basic library files such as toolbox.c
This may have to do with the use of older libraries but i have not been able to sort out the problem at this time. I have attached a picture of the error report.
Thanks
01-30-2013 07:38 AM
There are a couple of things about this that are odd:
1. In my 2010 copies of toolbox.c and excel97.c, there are no uses of uintptr_t at those line numbers. For example, here's what I see in line 2946 of "C:\Program Files (x86)\National Instruments\CVI2010\toolslib\toolbox\toolbox.c":
The only use of uintptr_t that I found in toolbox.c was in the definition of the VALIDATE_LIST macro, which is not used anywhere near that line. Are you using some different version of toolbox.c?
2. Even if you have references to uintptr_t in your source code, that should not be a problem. It's defined in cvidef.h, which is included by pretty much every other CVI include file. Can you make sure that you're including this header and that the uintptr_t typedef (line 283) is being included in the compilation?
Luis
01-30-2013 08:12 AM
Thats for the info.
It actually helped me catch the issue i was having. Since I am working with legacy product i have had a cvidef.h file which was dated back to 1999. Did not define that identifier. The file was included within a local include folder no the CVI install directory.
Updated the old include with most current and corrected problem.
Thanks for the help.