You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to open...@googlegroups.com
Hello,
I used the method given in https://github.com/acplt/open62541/wiki/Building-open62541 to compile the examples under windows,but I came up with many problems.I used minGW and I got many errors like undefined reference to ioctlsocket.I looked it up in google,and got the answer that I didn't include the wsock library.Am I right?If so,what should I do?Or can you give me some detailed help like what command should I use to compile it?
By the way,I also used visual studio 2013 to do the same thing, but I also got many C2275 errors in vs.The reason is that some of the variables are not defined in the head of the function block,which go against the rules of C languge grammar.What should I do to make it complie successfully?
Either of the questions will be helpful.Many thanks and looking forward for your reply~~~~
Julius Pfrommer
unread,
Apr 21, 2015, 4:13:45 AM4/21/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to open...@googlegroups.com, pete...@gmail.com
Hello Peter,
Thank you for reporting this.
1) Sten Grüner (@Stasik0 on github) improved the MinGW build. Can you confirm that the current master is working for you? We automatically cross-compile and check our sources for many target
architectures, including windows. (see here:
https://travis-ci.org/acplt/open62541) We just added a 64bit Windows to the list.
2) open62541 is written in C99. The standard is now 16 years old and has quite some advantages over ANSI C. For examples, variables can be declared not only at the beginning of functions. Even Microsoft has come around to supporting the features of C99 we use. But we are affected by a bug in the Visual Studio 2013 C-compiler that was fixed only in the 2015 preview. [1] The MSVC 2015 preview can be downloaded here [2]. I just updated the wiki to reflect this.
If you have any more questions, just ask. Or post an issue on our github page if it is more technical.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to open...@googlegroups.com
Hello,
Yes, references to ioctlsocket seem to indicate missing Wsock2.
i have just compiled the stack with mingw and fixed one inclusion error. Nothing else. I advise you to check your toolchain: I tested using
- cmake-3.2.2-win32-x86.exe
- MinGW including gcc 4.8.1
Best Regards
Sten
pete...@gmail.com
unread,
Apr 21, 2015, 8:42:59 PM4/21/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to open...@googlegroups.com, pete...@gmail.com
Thanks a lot,I have made it through using the MinGW~~~
在 2015年4月21日星期二 UTC+8下午4:13:45,Julius Pfrommer写道:
pete...@gmail.com
unread,
Apr 21, 2015, 8:43:53 PM4/21/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to open...@googlegroups.com, pete...@gmail.com
Thank you for your answer, I have made it through~~~