Page 1 of 1

Building RCF proto with mingw in Windows

Posted: Tue Apr 15, 2014 2:23 pm
by jimmy
Hello,

I am trying to build RCFProto(0.9.0.6) for Windows 7 (64-bits) using MINGW and I am having some problems.
So my first question is of course: Is this supported at all?

The problems i get is the following:

- In Threadpool.cpp:57:9 error: : expected 'catch' before '__except' (and similar errors)
This seems to be (I think) an issue with the code expecting me to use a MS compiler when building in Windows.

- In Schannel:755:51:error: 'CERT_SYSTEM_STORE_CURRENT_USER' was not declared in this scope (and similar errors for all kinds of CERT-related flags)
I suppose I am missing an include somewhere.

I have used the including cmake list to generate the makefile I am using.

Any suggestions?

/Jimmy

Re: Building RCF proto with mingw in Windows

Posted: Sun Apr 20, 2014 11:35 am
by jarl
Hi jimmy,

We have at various times in the past attempted to support mingw, but it is a difficult environment to test, so for now we don't officially support it. Having said that, I think the changes needed to make it work are fairly simple.

For the error in ThreadPool.cpp, you can just comment out the implementation of setWin32ThreadName(), as it is only useful for the Visual C++ debugger anyway.

For the errors in Schannel.cpp, you'll need to figure out why the various CERT symbols are not present in the mingw headers - hopefully it is only a matter of including an extra header. Or possibly upgrading the mingw version.

If there is any possibility for you to use Visual C++, that would probably be the easiest way forward. If you do get it working with mingw, and can send us a patch, I would be happy to apply the code changes.

Re: Building RCF proto with mingw in Windows

Posted: Wed Apr 23, 2014 6:54 am
by jimmy
Thanks Jarl for your response.

I will try your suggestions and come back to you if I make any progress.

best regards

Jimmy