none
error C2373:redefinition; different type modifiers

    Question

  •  hi.
    i create a new windows forms application project in visual c++.net2005 and add necessary lib & header files.
    and in Form1.h ,add this code:
    #pragma once
    #include "mclmcr.h"
    #include "foo2lib.h"
    and i do no change in code.
    when i compile this solution .it give me 12 errors.& all of them are "redefinition; different type modifiers":


    for example:
    Error 1 error C2373: 'matGetDir_proxy' : redefinition; different type modifiers E:\Program Files\MATLAB\R2008a\extern\include\mclmcrrt.h 143 
    .
    .
    .
    but when i create a new win32 console application project and do same workes,compiler give me no error
    and solution is run.
    please help me to remove these errors.
    Monday, July 28, 2008 8:23 AM

All replies

  • replace all occurrences of

    #include "mclmcr.h" 

     with
    #include "mclmcrrt.h" 

    Tuesday, July 29, 2008 3:09 PM
  • hi.
    i replace #include "mclmcr.h" with #include "mclmcrrt.h".
    by compiler give me 102 errors.
    and all of them are "redefinition; different type modifiers".
    please help me!
    Wednesday, July 30, 2008 4:48 AM