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