Good to hear! And thank you for sharing your .bat, that helps.

One thing I'd note is that it shouldn't be necessary to pass `-lws2_32` on
the cmake command line. If you find that it is, then that is probably a bug
in the CMake script.

On Wed, Jan 25, 2017 at 10:21 AM, AMvanRijsbergen <[email protected]
> wrote:

> Welldone gentlemen, evrything compiles nicely and the test run good :)
>
> this is my windows batch script if somebodycan use it just save it in a
> text file and rename it to capnproto.bat
>
> @echo off
> set mypath=%~dp0
> set me=%~n0
> set filepath=%mypath%kj
> echo %mypath:~0,-1%
> echo %filepath%
> if not exist cmake goto :nocmake
> if exist x86_64-w64-mingw32-gcc goto :nomingw
>
> if not exist %mypath%\build mkdir %filepath%\build
> if not exist %mypath%\binaries mkdir %filepath%\binaries
>
> set CC=C:\MinGW\bin\x86_64-w64-mingw32-gcc.exe
> set CXX=C:\MinGW\bin\x86_64-w64-mingw32-g++.exe
> set USE_GMP=g++ --with-gmp
> cd %filepath%\build
> takeown /F %mypath%
> takeown /F %filepath%\build
> takeown /F %filepath%\binaries
>
> cmake -G "MinGW Makefiles" 
> CMAKE_CXX_COMPILER=C:\MinGW\bin\x86_64-w64-mingw32-g++.exe
> -DCAPNP_EXECUTABLE=%mypath%\capnp.exe 
> -DCAPNPC_CXX_EXECUTABLE=%mypath%\capnpc-c++.exe
> -DCMAKE_CXX_STANDARD_LIBRARIES=-lws2_32 %mypath%
> cmake --build %filepath%/build
> pause
> exit
>
> :nocmake
> echo install cmake at www.cmake.org/download
> pause
> exit
> :nomingw
> echo install mingw at https://mingw-w64.org/doku.php/download
> echo choose MingwBuilds for mingw makefiles
> pause
> exit
> :nogit
> echo install git at https://git-scm.com/download/win
> pause
> exit
>
>
> On Wednesday, January 25, 2017 at 6:00:45 PM UTC+1, Harris Hancock wrote:
>>
>> Andre, I think I recognize that error. It should be fixed by a
>> combination of recent commits on master. Could you update to the latest
>> master branch and try again?
>>
>> Harris
>>
>> On Jan 25, 2017 8:25 AM, "AMvanRijsbergen" <[email protected]> wrote:
>>
>> Hi Kenton, i replicated the problem
>> iam not using the LITE mode
>> I don't understand why the reference to `kj::AsyncInputStream::read(void*,
>> unsigned long long, unsigned long long) fails
>> cheers andre
>>
>> === snap shot ===
>> [ 71%] Built target kj-async
>> Scanning dependencies of target kj-heavy-tests
>> [ 73%] Building CXX object src/kj/CMakeFiles/kj-heavy-tes
>> ts.dir/async-test.c++.obj
>> [ 75%] Building CXX object src/kj/CMakeFiles/kj-heavy-tes
>> ts.dir/async-win32-test.c++.obj
>> [ 77%] Building CXX object src/kj/CMakeFiles/kj-heavy-tes
>> ts.dir/async-io-test.c++.obj
>> [ 79%] Building CXX object src/kj/CMakeFiles/kj-heavy-tes
>> ts.dir/refcount-test.c++.obj
>> [ 81%] Building CXX object src/kj/CMakeFiles/kj-heavy-tes
>> ts.dir/string-tree-test.c++.obj
>> [ 83%] Building CXX object src/kj/CMakeFiles/kj-heavy-tes
>> ts.dir/arena-test.c++.obj
>> [ 85%] Building CXX object src/kj/CMakeFiles/kj-heavy-tes
>> ts.dir/units-test.c++.obj
>> [ 87%] Building CXX object src/kj/CMakeFiles/kj-heavy-tes
>> ts.dir/tuple-test.c++.obj
>> [ 89%] Building CXX object src/kj/CMakeFiles/kj-heavy-tes
>> ts.dir/one-of-test.c++.obj
>> [ 91%] Building CXX object src/kj/CMakeFiles/kj-heavy-tes
>> ts.dir/function-test.c++.obj
>> [ 93%] Building CXX object src/kj/CMakeFiles/kj-heavy-tes
>> ts.dir/threadlocal-pthread-test.c++.obj
>> [ 95%] Building CXX object src/kj/CMakeFiles/kj-heavy-tes
>> ts.dir/parse/common-test.c++.obj
>> [ 97%] Building CXX object src/kj/CMakeFiles/kj-heavy-tes
>> ts.dir/parse/char-test.c++.obj
>> [100%] Linking CXX executable kj-heavy-tests.exe
>> libkj-async.a(kjasync-io-win32.c++.obj):kjasync-io-win32.c++
>> :(.rdata$_ZTVN2kj13AsyncIoStreamE[_ZTVN2kj13AsyncIoStreamE]+0x10):
>> undefined reference to `kj::AsyncInputStream::read(void*, unsigned long
>> long, unsigned long long)'
>> libkj-async.a(kjasync-io-win32.c++.obj):kjasync-io-win32.c++
>> :(.rdata$.refptr._ZTVN2kj16AsyncInputStreamE[.refptr._ZTVN2kj16AsyncInputStreamE]+0x0):
>> undefined reference to `vtable for kj::AsyncInputStream'
>> collect2.exe: error: ld returned 1 exit status
>> src\kj\CMakeFiles\kj-heavy-tests.dir\build.make:423: recipe for target
>> 'src/kj/kj-heavy-tests.exe' failed
>> mingw32-make.exe[2]: *** [src/kj/kj-heavy-tests.exe] Error 1
>> CMakeFiles\Makefile2:1219: recipe for target
>> 'src/kj/CMakeFiles/kj-heavy-tests.dir/all' failed
>> mingw32-make.exe[1]: *** [src/kj/CMakeFiles/kj-heavy-tests.dir/all]
>> Error 2
>> Makefile:126: recipe for target 'all' failed
>> mingw32-make.exe: *** [all] Error 2
>> Press any key to continue . . .
>>
>> On Wednesday, January 18, 2017 at 7:03:46 PM UTC+1, AMvanRijsbergen wrote:
>>
>>> Hi, i an trying to figure out how multiple threads are started in kj,
>>> It looks like they are started independently in other code atleast the
>>> Unix code but what I don't understand in the windows code first
>>> CreateThread is used in thread.h and then completionport created in
>>> async-io-win32.h because completionport is a wrapper around threadpool. Is
>>> the intention to create one thread at the event loop and port and the
>>> create an other thread with a loop or is it supposed to create multiple
>>> threads based on the number of cores?
>>>
>>> Cheers Andre
>>>
>> --
>> 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].
>> Visit this group at https://groups.google.com/group/capnproto.
>>
>>
>> --
> 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].
> Visit this group at https://groups.google.com/group/capnproto.
>

-- 
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].
Visit this group at https://groups.google.com/group/capnproto.

Reply via email to