Click here to Skip to main content
15,885,792 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Getting this error during wxWidgets compilation for FileZilla on Windows10/MSYS2/Cygwin.

$ ./configure --prefix="$HOME/prefix" --enable-static --disable-shared --build=x86_64-w64-mingw32 --enable-unicode --without-libtiff --without-libjpeg --with-expat=builtin --with-libpng=builtin --disable-fsvolume



C++
$ make

/home/alex_buz/wx3/bk-deps g++ -c -o netlib_socket.o -I./.pch/wxprec_netlib -D__WXMSW__      -DWXBUILDING    -I./src/png -I./src/zlib -I./src/regex -I./src/expat/lib -DwxUSE_GUI=0 -Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy -Woverloaded-virtual -D_FILE_OFFSET_BITS=64 -I/home/alex_buz/wx3/lib/wx/include/msw-unicode-static-3.0 -I./include -DWX_PRECOMP -O2 -fno-strict-aliasing  ./src/common/socket.cpp
./src/common/socket.cpp: In member function ‘wxSocketEventFlags 
wxSocketImpl::Select(wxSocketEventFlags, const timeval*)’:

./src/common/socket.cpp:1343:73: error: cannot convert ‘timeval*’ to ‘PTIMEVAL {aka __ms_timeval*}’ for argument ‘5’ to ‘int select(int, fd_set*, fd_set*, fd_set*, PTIMEVAL)’
     const int rc = select(m_fd + 1, preadfds, pwritefds, &exceptfds, &tv);
                                                                         ^
make: *** [Makefile:29796: netlib_socket.o] Error 1


Google search gave some hints that it's related to boost.

Any way to resolve it?

What I have tried:

Googled and got 2 exact hits without answers.
Posted
Updated 9-Dec-16 1:51am

1 solution

Both values are different structures, because the members are of different type. Look at the definition code of them.

You cant convert them => make an instance and set the members.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900