Problem with VC++ compiler



I am having a problem with the Visual C++ compiler with the following
error

c:\rgb.h(7) : error C2371: 'pix_t' : redefinition; different basic
types

This refers to a typedef that I have written in the code. The code
will compile with the GNU compiler and I was trying to port it to VC+
+. Here is the typedef as it appears

typedef struct {
double red;
double green;
double blue;
}pix_t;

Any help would be appreciated. Thanks.

.



Relevant Pages

  • Re: Same code problem
    ... some weirdness about pointers as well ... Yup its since early December that I am still trying to complete this snippit of code because I am trying to accomodate my *special* compiler. ... typedef long WPARAM; ... void *handle;} HWND; ...
    (microsoft.public.vc.language)
  • Re: [PATCH 1/1] LinuxPPS: Pulse per Second support for Linux
    ... Follows my comments and then the patch, hope now I can came back into ... +typedef union pps_timeu { ... +typedef struct pps_info { ... different version of the compiler, and when different compiler options are ...
    (Linux-Kernel)
  • Re: Same code problem
    ... Can someone confirm to me that there officially is a compiler issue here. ... typedef long WPARAM; ... typedef struct tagWnd *pWND; ... HWND hwnd; ...
    (microsoft.public.vc.language)
  • Compilation and runtime error with vc++ Version 6.0
    ... The compilation finishes but the warning is ... Copyright Microsoft Corp 1984-1998. ... typedef value_type& reference; ... confirmation or denial that the compiler does what I said ...
    (comp.lang.cpp)
  • Re: Problem with VC++ compiler
    ... I am having a problem with the Visual C++ compiler with the ... This refers to a typedef that I have written in the code. ...
    (comp.lang.c)