I’ve had a project working in 0.7.4 in VS2010 and I’ve made a hard decision to move all of my code to 0.8.0 to be up to date. I’ve had to recreate the project from scratch using projectGenerator (visual studio settings give me a headache… somehow xCode manages pretty well with all that C++ project configuration complexity). After i’ve recreated the project I’ve started to get strange error
Error C2733: ‘GetProcessInformation’ : second C linkage of overloaded function is not allowed
This error points to a header file in $(OF_CORE_PATH)/libs/quicktime/include/Processes.h. I cannot remove the file from external dependencies and only commenting out the code which defines GetProcessInformation makes the project compile successfuly. Does anyone know what might cause this issue? I’m a noob on Windows+VS and configuring the project.
I’m also on Visual Studio 2012 Express. I was able to run some projects successfully, but I am now trying to port/run the ofxKinectNui (https://github.com/sadmb/ofxKinectNui) example and getting this “second C linkage” error.
I’ve also tried using the migrationToVS2012 bash script but it’s failing because it can’t find the “devenv” command.
I just ran into the same issue. I think it has something to do with openFrameworks re-defining some VS/Windows constants, so if you include things like <windows.h> before ofMain.h, when ofMain.h is finally included and redefines things, it might conflict with other stuff already linked.
So in a nutshell my solution was to include ofMain.h at the top of the file where I had my other fancy includes that are calling more windows specific code. Which apparently won’t work well with ofxKinectNui as its specifically says “#include “kinect/nui/Kinect.h” // this should be before ofMain.h”
For further reference, my feeling is that the ofConstant.h file is messing around with some settings :
Hi I had the this same error while trying to run ofxEdsdk on windows. As I needed it to work I simply removed quicktime from OF, which was what was giving the problems.
Obviously this is not a good solution and it worked for me as I wasn’t using Quicktime.
It would be really good to get this fixed.
The idea of having the includes reordered might work well but I feel that it is also a quick and dirty hack that might lead into further confusion. I’ll recheck this trying to see if OF is redefining something which causes the problem.