Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Including NIDAQmx.h After nivxi.h Causes Redefinition Errors for the INT8 Datatype

Primary Software: LabWindows/CVI Development Systems>>Full Development System
Primary Software Version: 8.1.1
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
I have created a source file that simple includes the NIDAQmx.h and busacc.h header files. When I attempt to compile, the compiler complains that INT8 is attempting to be redefined twice. Also any other headers that rely on busacc.h or datasize.h produce this problem (i.e. nivxi.h).

Solution:
To workaround this issue, you have two options which are:
  • Change the order of the included headers so that NIDAQmx.h is included first.
  • Comment out the typedef int INT8; line in the datasize.h header file.


Related Links:

Attachments:





Report Date: 04/13/2007
Last Updated: 04/19/2007
Document ID: 47EA4L1A

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit