Karthik Agarwal

Karthik Agarwal

  • NA
  • 748
  • 265.5k

How to avoid compilation error when .c file is included in the vc++ project??

Oct 21 2011 6:58 AM
Hi,

I have a .c file which is included in my vc++ solution. I called a function in the .c file from another class but if try to call the same function from another class in the same namespace its popping up lot of errors like C2011, C2084, C2086, C2296, C2370, C2372, C3861 which are compilation error identifiers.

Note: Both the classes from where i am calling the .c function are different .cpp files.


Earliest response would be appreciated. I guess the problem is, when i am trying to call the .c file for the second time the .c file is getting compiled one more time. For any doubts please post back.

Answers (26)