c++ - type errors in Mingw-x64 -
i'm trying build project (wpilib) on windows, coming linux works fine. installed mingw, didn't seem have threading stuff i'm using, deleted , installed mingw-x64. got me further, i'm stuck here.
in file included c:/program files/mingw-w64/x86_64-5.1.0-posix-seh-rt_v4-rev0/mingw64/x86_64-w64-mingw32/include/winsock2.h:55:0, c:\users\peter\gz-ws\boost_1_56_0/boost/asio/detail/socket_types.hpp:38, c:\users\peter\gz-ws\boost_1_56_0/boost/asio/detail/win_tss_ptr.hpp:23, c:\users\peter\gz-ws\boost_1_56_0/boost/asio/detail/tss_ptr.hpp:25, c:\users\peter\gz-ws\boost_1_56_0/boost/asio/detail/call_stack.hpp:20, c:\users\peter\gz-ws\boost_1_56_0/boost/asio/impl/handler_alloc_hook.ipp:19, c:\users\peter\gz-ws\boost_1_56_0/boost/asio/handler_alloc_hook.hpp:80, c:\users\peter\gz-ws\boost_1_56_0/boost/asio/detail/handler_alloc_helpers.hpp:21, c:\users\peter\gz-ws\boost_1_56_0/boost/asio/detail/bind_handler.hpp:19, c:\users\peter\gz-ws\boost_1_56_0/boost/asio/detail/wrapped_handler.hpp:18, c:\users\peter\gz-ws\boost_1_56_0/boost/asio/io_service.hpp:24, c:\users\peter\gz-ws\boost_1_56_0/boost/asio/basic_io_object.hpp:19, c:\users\peter\gz-ws\boost_1_56_0/boost/asio/basic_socket.hpp:20, c:\users\peter\gz-ws\boost_1_56_0/boost/asio/basic_datagram_socket.hpp:20, c:\users\peter\gz-ws\boost_1_56_0/boost/asio.hpp:21, c:\users\peter\gz-ws\gazebo\build\install\debug\include\gazebo-6.0/gazebo/transport/connection.hh:23, c:\users\peter\gz-ws\gazebo\build\install\debug\include\gazebo-6.0/gazebo/transport/transport.hh:3, c:\users\peter\wpilib\cpp\current\sim\include/driverstation.h:9, c:\users\peter\wpilib\cpp\current\sim\include/robotbase.h:9, c:\users\peter\wpilib\cpp\current\sim\include/wpilib.h:35, ..\src\oi.h:11, ..\src\oi.cpp:8: c:/program files/mingw-w64/x86_64-5.1.0-posix-seh-rt_v4-rev0/mingw64/x86_64-w64-mingw32/include/psdk_inc/_socket_types.h:11:9: error: 'uint_ptr' not name type typedef uint_ptr socket;
for reason, adding following .cpp files seems have fixed particular problem. i've noticed seems putting @ top, don't see connection between , uint_ptr
, defined in basetsd.h
#ifdef _win32 // ensure winsock2.h included before windows.h #include <winsock2.h> #endif
if figure out why fixes it, i'd love know
Comments
Post a Comment