LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Compiling error on ssize_t

 

Hi,

 

I'm rookie on the Labwindow cvi. Just followed through the traning material "Getting Started".

 

Almost completed chaper 3  and encountered an error on c source codes.

 

c surce code

   SinePattern (100, amp, 180.0, 2.0, sine);

 

Build output window shows

 sample2.c - 1 error
  86, 25    error: called object type 'ssize_t' (aka 'int') is not a function or function pointer

 

Have changed either " ssize_t" or " size_t" but still  having debugging error.

 

Need advice here.

 

Many thanks.

0 Kudos
Message 1 of 2
(3,459 Views)

Hi,

 

I just tested this code myself and everything works fine:

 

#include <analysis.h>
static double sine [ 100 ];
SinePattern (100, 4, 180.0, 2.0, sine);

 

Can you confirm that these three lines do not work for you?

 

The only ssize_t is the first parameter, the number of elements, so this should not throw any error. Since the code you posted is incomplete right now it is difficult to tell where the real problem is.

0 Kudos
Message 2 of 2
(3,455 Views)