Click here to Skip to main content
15,299,443 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi, i am tryin to port a piece of code from windows7 to windows 8 using visual studio 2012. i am getting loads of errors related to system files that are not even included anywhere in the code. how can i remove them. ?
i am listing down th erros im getting.They are appearing multiple times.

error C2894: templates cannot be declared to have 'C' linkage - roapi.h
error C2733: 'operator new: second C linkage of overloaded function not allowed - new.h
error C2733: 'operator delete: second C linkage of overloaded function not allowed - new.h
error C2146:syntax error: missing';' before identifier 'nlength' - minwinbase.h
error C4430:missing type specifier - int assumed.Note C++ does not support default-int - minwinbase.h



these errors are appearing in multiple files and several times.
Could you please help em how to resolve it.I guess its a settign problem as none of these files is included in any of the code files.
Posted
Comments
   
Why do you call C++ compilation problems "Visual Studio 2012 compilation problems"? Why do you think a problem can be solved just looking at error message, not having the lines of code?
--SA
Charmy from bangalore 8-Oct-12 2:33am
   
Hi, i have run the same code in VS 2008.I could run and test it successfully.But now when im trying to compile in VS2012, the above listed errors are coming. And moreover its all files like winnt.h,roapi.h, minwinbase.h etc.
__John_ 8-Oct-12 4:37am
   
Looks like you are mixing C and C++ and this is causing you problems.
Are you compiling C++ code using the C compiler?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900