08-28-2004 09:48 PM
08-29-2004 04:10 PM
10-27-2011 04:02 AM - edited 10-27-2011 04:06 AM
Hello,
I met the same problem,but it is still not ok when I defined a constant in the .h file like this:
#ifndef PHTEDTYPEDEFS_H
#define PHTEDTYPEDEFS_H
#endif
the error are below:
API_Ted.c - 2 errors
"phTedTypeDefs.h"(40,35) Redeclaration of 'uint32_t'.
"phTedTypeDefs.h"(58,30) Redeclaration of 'int32_t'.
DRV_HiT.c - 2 errors
"phTedTypeDefs.h"(40,35) Redeclaration of 'uint32_t'.
"phTedTypeDefs.h"(58,30) Redeclaration of 'int32_t'.
DRV_HiTa.c - 2 errors
"phTedTypeDefs.h"(40,35) Redeclaration of 'uint32_t'.
"phTedTypeDefs.h"(58,30) Redeclaration of 'int32_t'.
DRV_Ted.c - 2 errors
"phTedTypeDefs.h"(40,35) Redeclaration of 'uint32_t'.
"phTedTypeDefs.h"(58,30) Redeclaration of 'int32_t'.
TED_2.c - 2 errors
"phTedTypeDefs.h"(40,35) Redeclaration of 'uint32_t'.
"phTedTypeDefs.h"(58,30) Redeclaration of 'int32_t'.
10-31-2011 10:47 PM
Hello,
Anyone can help me? Im a CVI beginner.
I inluded a .h file (PHTEDTYPEDEFS.H)
#ifndef PHTEDTYPEDEFS_H
#define PHTEDTYPEDEFS_H
#ifdef __GNUG__
#include <stdint.h>
#include <cstddef>
#else
/**
* \addtogroup GlobalHeaders
* @{
*/
/* unsigned types */
#ifndef __uint8_t_defined
#define __uint8_t_defined
typedef unsigned long uint32_t;
#endif
#endif /* PHTEDTYPEDEFS_H */
but the stdint.h
define the
typedef unsigned int uint32_t;
so the error is "phTedTypeDefs.h"(40,35) Redeclaration of 'uint32_t'.
how s
11-03-2011 05:57 PM
See my response to your other post.
http://forums.ni.com/t5/LabWindows-CVI/typedef-unsigned-long-long-UINT64/td-p/789580
A unsigned long and an unsigned int are the same thing in CVI. You could modify the header for the 3rd party DLL to use unsigned int.
11-03-2011 05:57 PM
See my response to your other post.
http://forums.ni.com/t5/LabWindows-CVI/typedef-unsigned-long-long-UINT64/td-p/789580
A unsigned long and an unsigned int are the same thing in CVI. You could modify the header for the 3rd party DLL to use unsigned int.
11-03-2011 09:58 PM
Hi ,
thank you very much,
I think i have no other choice but to change the 3rd party header files,yes,it is okay,after i have change the 3rd pary files, there are so many files which were included in my souce code i have to update,maybe this is not good way .~~