LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

ERROR IN COMPILATION

HI,
    I am trying to compile a file in labwindows but it keeps showing me the error. i have attached the source code and the header file.
 
  175, 1   Illegal use of type name 'BIRDREADING'.
  175, 14   Undeclared identifier 'bird_data'.
  181, 21   Left operand of -> has incompatible type 'int'.
. Now BIRDREADING has been defined in the header file. I have made this software under labwindows using the windows driver files(bird.h,bird.lib,sample example) provided by ascenstion technoIogy .I have spoken about the error with them but according to them in this case labwindows is not linking the library file.  Also, according to them the term bird_data has been declared in the library file.I have pasted the header file in the include folder and the header, dll and the library file are present in the project folder .Also I have added the library file to the project using Edit//add files to project. Can u suggest me something.
 
Waiting for a reply.
Kunal Chaniary
 
Download All
0 Kudos
Message 1 of 2
(2,863 Views)
Hi Kunal,

C requires that all data declarations appear at the top of their scope, before any functions are called.  Moving your declaration of bird_data above the line
birdGetMostRecentFrame(GROUP_ID,&frame);
should do the trick.

Hope this helps.

Mert A.
National Instruments
Message 2 of 2
(2,859 Views)