2020년 6월 15일 월요일 오전 12시 53분 34초 UTC+9, 김동인 님의 말:
>
> hi.
>
> now. i am in difficulty situation that some of header files conflicting.
>
> i haven't soloved this problem.
>
> let me show my example code inorder to make you understand my situation
> T.T'
>
> ------------------ example code ------------------
>
> #include <iostream>
> #include <ws2tcpip.h>
> #include <mswsock.h>
>
> #include "test-my.capnp.h"
> #include <capnp/message.h>
> #include <capnp/serialize-packed.h>
>
> int main()
> {
> ::capnp::MallocMessageBuilder message;
>
> TestMy::Builder testBuilder = message.initRoot<TestMy>();
> }
>
> ------------------------------------------------------
>
> ws2tcpip.h and mswsock.h that i use in my main project conflict with some
> of capn header files.
>
> if cap'n header files are used before ws2tcpip.h and mswsock.h, (below)
>
> ------------------ example code ------------------
> #include "test-my.capnp.h"
> #include <capnp/message.h>
> #include <capnp/serialize-packed.h>
>
> #include <iostream>
> #include <ws2tcpip.h>
> #include <mswsock.h>
>
> int main()
> {
> ::capnp::MallocMessageBuilder message;
>
> TestMy::Builder testBuilder = message.initRoot<TestMy>();
> }
>
> ------------------------------------------------------
>
> the problem will be solved.
>
> but i feel that's very uncomfortable to use...
>
> besides now i can not use that like that codes
>
> because.... i am using precomplied header file in my project.
>
> so....it has became very complicated situation.
>
> could you give me good solution?
>
> T.T
>
>
it doesn't solve. (below)
#include <iostream>
#include <ws2tcpip.h>
#include <mswsock.h>
#include <kj/windows-sanity.h>
#include "test-my.capnp.h"
#include <capnp/message.h>
#include <capnp/serialize-packed.h>
int main()
{
//::capnp::MallocMessageBuilder message;
//TestMy::Builder testBuilder = message.initRoot<TestMy>();
}
is it right that i mean?
--
You received this message because you are subscribed to the Google Groups
"Cap'n Proto" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/capnproto/c8c946b7-3280-4d17-b5c0-820fc6f7eb2eo%40googlegroups.com.