12-01-2013 07:56 PM
hi,i'm a newer to cvi.
my program works well in 2010,
At first it alos works well in 2013.but now it has the folloing error.
the following statements are needed in "rs232,c", #include <rs232.h> do you want to add them to the top of the file.(rs232.c is the c file name.)
i click the yes,but it doesn't work
actually the c file already has " #inclue <rs232.h>"
is there something important i miss?
tks
Build Status (rs232.prj - Debug)
rs232.c - 8 errors
29, 5 error: implicit declaration of function 'OpenComConfig' is invalid in C99. Make sure that you include the function prototype.
31, 5 error: implicit declaration of function 'SetCTSMode' is invalid in C99. Make sure that you include the function prototype.
31, 18 error: use of undeclared identifier 'LWRS_HWHANDSHAKE_OFF'
35, 5 error: implicit declaration of function 'FlushInQ' is invalid in C99. Make sure that you include the function prototype.
36, 5 error: implicit declaration of function 'FlushOutQ' is invalid in C99. Make sure that you include the function prototype.
80, 20 error: implicit declaration of function 'GetInQLen' is invalid in C99. Make sure that you include the function prototype.
83, 18 error: implicit declaration of function 'ComRd' is invalid in C99. Make sure that you include the function prototype.
180, 14 error: implicit declaration of function 'ComWrt' is invalid in C99. Make sure that you include the function prototype.
Build failed.
Solved! Go to Solution.
12-02-2013 03:21 AM
Hello shayisi,
CVI displays the error dialog, because it has detected that some functions declared in rs232.h are used in your source file, so it suggests you to include the header file.
I would like to ask you to provide a few more details about your setup, so that we can determine if there is a possible bug with CVI 2013:
Thank you!
12-02-2013 08:36 PM
thanks for your reply,
don't use " rs232.uir "(uir's name),it works
rs232.h is created automaticlly when debuging.
===================================================================================================================