Open neoxeo opened 9 years ago
Hello,
Sorry for replying so late.
By the error codes of your compiler, I would bet you are using a version of Visual Studio that doesn’t support C++11. Please try with Microsoft Visual Studio 2012 or later.
By the way, could I ask what’s your interest in FlightVars? The current codebase is still in development. You are trying to compile just some utilities including a incomplete MQTT server, nothing useful yet. What do you exactly need from FlightVars?
Best,
-- Álvaro
El 27/12/2014, a las 14:44, neoxeo notifications@github.com escribió:
Hi,
I try to compile but have error. MakeFile is created with : E:\flightvars>cmake .. -G "NMake Makefiles" -DBOOST_ROOT=e:\boost_1_56_0
After I try to compile with nmake but have errors : [ 10%] Building CXX object common/CMakeFiles/integration-tests.dir/test/io/tcp-server-it.cpp.obj tcp-server-it.cpp E:\flightvars\common\include\flightvars/concurrent/executor.hpp(25) : error C2610: 'flightvars::concurrent::same_thread_executor::same_threadexecutor(flightvars::concurrent::same thread_executor &&)' : n'est pas une fonction membre spéciale qui peut être définie par défaut E:\flightvars\common\include\flightvars/concurrent/executor.hpp(37) : error C2610: 'flightvars::concurrent::asio_service_executor::asio_service_executor(flightvars::concurrent::asi o_service_executor &&)' : n'est pas une fonction membre spéciale qui peut être définie par défaut E:\flightvars\common\include\flightvars/util/either.hpp(56) : error C2610: 'flightvars::util::either::either(flightvars::util::either &&)' : n'est pas une fonction membre spéciale qui peut être définie par défaut E:\flightvars\common\include\flightvars/util/either.hpp(153) : voir la référence à l'instanciation de la classe modèle 'flightvars::util::either' en cours de compilati on E:\flightvars\common\include\flightvars/util/either.hpp(64) : error C2610: 'flightvars::util::either &flightvars::util::either::operator =(flightvars::util::either & &)' : n'est pas une fonction membre spéciale qui peut être définie par défaut E:\flightvars\common\include\flightvars/util/attempt.hpp(48) : error C2610: 'flightvars::util::attempt::attempt(flightvars::util::attempt &&)' : n'est pas une fonction membre spéciale qui peut être définie par défaut E:\flightvars\common\include\flightvars/util/attempt.hpp(110) : voir la référence à l'instanciation de la classe modèle 'flightvars::util::attempt' en cours de compilati on E:\flightvars\common\include\flightvars/util/attempt.hpp(51) : error C2610: 'flightvars::util::attempt &flightvars::util::attempt::operator =(flightvars::util::attempt &&) ' : n'est pas une fonction membre spéciale qui peut être définie par défaut E:\flightvars\common\include\flightvars/util/attempt.hpp(125) : error C2610: 'flightvars::util::attempt::attempt(flightvars::util::attempt &&)' : n'est pas une fonction membre spéciale qui peut être définie par défaut E:\flightvars\common\include\flightvars/util/attempt.hpp(128) : error C2610: 'flightvars::util::attempt &flightvars::util::attempt::operator =(flightvars::util::attempt &&)' : n'est pas une fonction membre spéciale qui peut être définie par défaut E:\flightvars\common\include\flightvars/io/connection.hpp(27) : error C2144: erreur de syntaxe : 'bool' doit être précédé de ';' E:\flightvars\common\include\flightvars/io/connection.hpp(28) : voir la référence à l'instanciation de la classe modèle 'flightvars::io::is_connection' en cours de compi lation E:\flightvars\common\include\flightvars/io/connection.hpp(27) : error C4430: spécificateur de type manquant - int est pris en compte par défaut. Remarque : C++ ne prend pas en char ge int par défaut NMAKE : fatal error U1077: 'E:\VS2013\VC\bin\cl.exe' : code retour '0x2' Stop. NMAKE : fatal error U1077: 'E:\VS2013\VC\BIN\nmake.exe' : code retour '0x2' Stop. NMAKE : fatal error U1077: 'E:\VS2013\VC\BIN\nmake.exe' : code retour '0x2' Stop.
Thank you for your help.
— Reply to this email directly or view it on GitHub.
Hi Alvaro,
Thank you for the reply.
I use Visual Studio 2013.
I have try to do this : cmake .. -G "Visual Studio 12 2013" -DBOOST_ROOT=E:\boost_1_56_0
Solution (.sln) is generated, it open fine in VS 2013 but have lot errors when I try to compile.
I develop a freeware to create AI Objects in FSX and Prepar3d and I need to synchronize Ground, Boats, Submarines Objects from server to each clients. I have discover your code and MQTT (I didn't know before) and have readinformations from the links you give. It seems to be very intersting. I can give you more infos if you want.
I doesn't know C++, I use CSharp.
Thank you again for your work and your help.
Laurent
That’s weird! Perhaps you have some other version of Visual Studio installed on your system along 2013? I’m pretty sure these errors are C++11 syntax the compiler is unable to interpret.
Could you please copy and paste the whole output of CMake command?
Best,
-- Álvaro
El 29/12/2014, a las 11:39, neoxeo notifications@github.com escribió:
Hi Alvaro,
Thank you for the reply.
I use Visual Studio 2013.
I have try to do this : cmake .. -G "Visual Studio 12 2013" -DBOOST_ROOT=E:\boost_1_56_0
Solution (.sln) is generated, it open fine in VS 2013 but have lot errors when I try to compile.
I develop a freeware to create AI Objects in FSX and Prepar3d and I need to synchronize Ground, Boats, Submarines Objects from server to each clients. I have discover your code and MQTT (I didn't know before) and have readinformations from the links you give. It seems to be very intersting. I can give you more infos if you want.
I doesn't know C++, I use CSharp.
Thank you again for your work and your help.
Laurent
— Reply to this email directly or view it on GitHub.
e:\flightvars\build2>cmake .. -G "NMake Makefiles" -DBOOST_ROOT=e:\boost_1_56_0 >cmakelog.log
-- The C compiler identification is MSVC 18.0.30723.0 -- The CXX compiler identification is MSVC 18.0.30723.0 -- Check for working C compiler: E:/VS2013/VC/bin/cl.exe -- Check for working C compiler: E:/VS2013/VC/bin/cl.exe -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: E:/VS2013/VC/bin/cl.exe -- Check for working CXX compiler: E:/VS2013/VC/bin/cl.exe -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Boost version: 1.56.0 -- Found the following Boost libraries: -- chrono -- date_time -- filesystem -- log -- log_setup -- regex -- system -- thread -- unit_test_framework -- Boost libraries are at e:/boost_1_56_0/stage/lib -- Configuring done -- Generating done -- Build files have been written to: E:/flightvars/build2
Perhaps you are using the release candidate of MSVS 2013?
Best,
-- Álvaro
El 29/12/2014, a las 13:55, neoxeo notifications@github.com escribió:
e:\flightvars\build2>cmake .. -G "NMake Makefiles" -DBOOST_ROOT=e:\boost_1_56_0 >cmakelog.log
-- The C compiler identification is MSVC 18.0.30723.0 -- The CXX compiler identification is MSVC 18.0.30723.0 -- Check for working C compiler: E:/VS2013/VC/bin/cl.exe -- Check for working C compiler: E:/VS2013/VC/bin/cl.exe -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: E:/VS2013/VC/bin/cl.exe -- Check for working CXX compiler: E:/VS2013/VC/bin/cl.exe -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Boost version: 1.56.0 -- Found the following Boost libraries: -- chrono -- date_time -- filesystem -- log -- log_setup -- regex -- system -- thread -- unit_test_framework -- Boost libraries are at e:/boost_1_56_0/stage/lib -- Configuring done -- Generating done -- Build files have been written to: E:/flightvars/build2
— Reply to this email directly or view it on GitHub.
My version is : Microsoft Visual Studio Professional 2013 Version 12.0.30723.00 Update 3 Microsoft .NET Framework Version 4.5.51209
Update 4 is available. I will try to update it.
Thank you again.
I just installed update 4, compiler version 18.00.31101. Everything compiles with no issues.
Please try to update your Visual Studio and try again.
Best,
-- Álvaro
El 29/12/2014, a las 14:26, neoxeo notifications@github.com escribió:
My version is : Microsoft Visual Studio Professional 2013 Version 12.0.30723.00 Update 3 Microsoft .NET Framework Version 4.5.51209
Update 4 is available. I will try to update it.
Thank you again.
— Reply to this email directly or view it on GitHub.
C:\Users\lolo>cd /d E:\flightvars
E:\flightvars>E:\VS_2013\VC\vcvarsall.bat
E:\flightvars>md build
E:\flightvars>cd build
E:\flightvars\build>cmake .. -G "NMake Makefiles" -DBOOST_ROOT=E:/boost_1_56_0 -- The C compiler identification is MSVC 18.0.31101.0 -- The CXX compiler identification is MSVC 18.0.31101.0 -- Check for working C compiler: E:/VS_2013/VC/bin/cl.exe -- Check for working C compiler: E:/VS_2013/VC/bin/cl.exe -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: E:/VS_2013/VC/bin/cl.exe -- Check for working CXX compiler: E:/VS_2013/VC/bin/cl.exe -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Boost version: 1.56.0 -- Found the following Boost libraries: -- chrono -- date_time -- filesystem -- log -- log_setup -- regex -- system -- thread -- unit_test_framework -- Boost libraries are at E:/boost_1_56_0/stage/lib -- Configuring done -- Generating done -- Build files have been written to: E:/flightvars/build
E:\flightvars\build>nmake
Microsoft (R) Program Maintenance Utility Version 12.00.21005.1 Copyright (C) Microsoft Corporation. Tous droits réservés.
Scanning dependencies of target integration-tests
[ 5%] Building CXX object common/CMakeFiles/integration-tests.dir/test/integration-test.cpp.obj
integration-test.cpp
[ 10%] Building CXX object common/CMakeFiles/integration-tests.dir/test/io/tcp-server-it.cpp.obj
tcp-server-it.cpp
E:\flightvars\common\include\flightvars/concurrent/executor.hpp(25) : error C2610: 'flightvars::concurrent::same_thread_executor::same_threadexecutor(flightvars::concurrent::same
thread_executor &&)' : n'est pas une fonction membre spéciale qui peut être définie par défaut
E:\flightvars\common\include\flightvars/concurrent/executor.hpp(37) : error C2610: 'flightvars::concurrent::asio_service_executor::asio_service_executor(flightvars::concurrent::asi
o_service_executor &&)' : n'est pas une fonction membre spéciale qui peut être définie par défaut
E:\flightvars\common\include\flightvars/util/either.hpp(56) : error C2610: 'flightvars::util::either<T,U>::either(flightvars::util::either<T,U> &&)' : n'est pas une fonction membre
spéciale qui peut être définie par défaut
E:\flightvars\common\include\flightvars/util/either.hpp(153) : voir la référence à l'instanciation de la classe modèle 'flightvars::util::either<T,U>' en cours de compilati
on
E:\flightvars\common\include\flightvars/util/either.hpp(64) : error C2610: 'flightvars::util::either<T,U> &flightvars::util::either<T,U>::operator =(flightvars::util::either<T,U> &
&)' : n'est pas une fonction membre spéciale qui peut être définie par défaut
E:\flightvars\common\include\flightvars/util/attempt.hpp(48) : error C2610: 'flightvars::util::attempt
I got it.
My apologies for this, but I didn’t recall some special hack is needed in Windows :-S
C++11 support in Visual Studio 2013 is buggy and incomplete, as I commented before. Microsoft released some C++ specific updates to fix it:
http://www.microsoft.com/en-us/download/details.aspx?id=41151
After installing Visual C++ Compiler November 2013 CTP, a new compiler configuration will be available in Visual Studio IDE. You can generate the Visual Studio project files with CMake and then open the solution and change the compiler in the solution properties.
If you want to build with nmake or QTCreator, you have to apply some hacks in vcvars.bat to set PATH environment variable so it takes the new build tools from CTP rather than Visual 2012. Please have a look to my copy of Microsoft Visual Studio 2012\VC\bin\vcvars32.bat
, attached to this email (renamed as .txt to avoid GMail complains).
Another alternative would be to install Visual Studio 2015 Preview, which should indeed have a good C++11 support. Or that’s what I expect four years after the C++11 standard was released.
I’m sorry by not having all this documented, but I wasn’t expecting anyone interested in building the code at such an early stage.
Best,
-- Álvaro
@call :GetVSCommonToolsDir
@if "%VS120COMNTOOLS%"=="" goto error_no_VS120COMNTOOLSDIR
@call "%VS120COMNTOOLS%VCVarsQueryRegistry.bat" 32bit No64bit
@if "%VSINSTALLDIR%"=="" goto error_no_VSINSTALLDIR
@if "%VCINSTALLDIR%"=="" goto error_no_VCINSTALLDIR
@if "%FrameworkDir32%"=="" goto error_no_FrameworkDIR32
@if "%FrameworkVersion32%"=="" goto error_no_FrameworkVer32
@if "%Framework40Version%"=="" goto error_no_Framework40Version
@set FrameworkDir=%FrameworkDir32%
@set FrameworkVersion=%FrameworkVersion32%
@if not "%WindowsSDK_ExecutablePath_x86%" == "" (
@set "PATH=%WindowsSDK_ExecutablePath_x86%;%PATH%"
)
@if not "%WindowsSdkDir%" == "" (
@set "PATH=%WindowsSdkDir%bin\x86;%PATH%"
@set "INCLUDE=%WindowsSdkDir%include\shared;%WindowsSdkDir%include\um;%WindowsSdkDir%include\winrt;%INCLUDE%"
@set "LIB=%WindowsSdkDir%lib\winv6.3\um\x86;%LIB%"
@set "LIBPATH=%WindowsSdkDir%References\CommonConfiguration\Neutral;%ExtensionSDKDir%\Microsoft.VCLibs\12.0\References\CommonConfiguration\neutral;%LIBPATH%"
)
@rem
@rem Root of Visual Studio IDE installed files.
@rem
@set DevEnvDir=%VSINSTALLDIR%Common7\IDE\
@rem PATH
@rem ----
@if exist "%VSINSTALLDIR%Team Tools\Performance Tools" (
@set "PATH=%VSINSTALLDIR%Team Tools\Performance Tools;%PATH%"
)
@if exist "%ProgramFiles%\HTML Help Workshop" set PATH=%ProgramFiles%\HTML Help Workshop;%PATH%
@if exist "%ProgramFiles(x86)%\HTML Help Workshop" set PATH=%ProgramFiles(x86)%\HTML Help Workshop;%PATH%
@if exist "%VCINSTALLDIR%VCPackages" set PATH=%VCINSTALLDIR%VCPackages;%PATH%
@if exist "%FrameworkDir%%Framework40Version%" set PATH=%FrameworkDir%%Framework40Version%;%PATH%
@if exist "%FrameworkDir%%FrameworkVersion%" set PATH=%FrameworkDir%%FrameworkVersion%;%PATH%
@if exist "%VSINSTALLDIR%Common7\Tools" set PATH=%VSINSTALLDIR%Common7\Tools;%PATH%
@if exist "%VCINSTALLDIR%BIN" set PATH=%VCINSTALLDIR%BIN;%PATH%
@if exist "%ProgramFiles(x86)%\Microsoft Visual C++ Compiler Nov 2013 CTP\bin" set PATH=%ProgramFiles(x86)%\Microsoft Visual C++ Compiler Nov 2013 CTP\bin;%PATH%
@set PATH=%DevEnvDir%;%PATH%
@rem Add path to MSBuild Binaries
@if exist "%ProgramFiles%\MSBuild\12.0\bin" set PATH=%ProgramFiles%\MSBuild\12.0\bin;%PATH%
@if exist "%ProgramFiles(x86)%\MSBuild\12.0\bin" set PATH=%ProgramFiles(x86)%\MSBuild\12.0\bin;%PATH%
@if exist "%VSINSTALLDIR%VSTSDB\Deploy" (
@set "PATH=%VSINSTALLDIR%VSTSDB\Deploy;%PATH%"
)
@if not "%FSHARPINSTALLDIR%" == "" (
@set "PATH=%FSHARPINSTALLDIR%;%PATH%"
)
@if exist "%DevEnvDir%CommonExtensions\Microsoft\TestWindow" (
@set "PATH=%DevEnvDir%CommonExtensions\Microsoft\TestWindow;%PATH%"
)
@rem INCLUDE
@rem -------
@if exist "%VCINSTALLDIR%ATLMFC\INCLUDE" set INCLUDE=%VCINSTALLDIR%ATLMFC\INCLUDE;%INCLUDE%
@if exist "%VCINSTALLDIR%INCLUDE" set INCLUDE=%VCINSTALLDIR%INCLUDE;%INCLUDE%
@if exist "%ProgramFiles(x86)%\Microsoft Visual C++ Compiler Nov 2013 CTP\include" set INCLUDE=%ProgramFiles(x86)%\Microsoft Visual C++ Compiler Nov 2013 CTP\include;%INCLUDE%
@rem LIB
@rem ---
@if exist "%VCINSTALLDIR%ATLMFC\LIB" set LIB=%VCINSTALLDIR%ATLMFC\LIB;%LIB%
@if exist "%VCINSTALLDIR%LIB" set LIB=%VCINSTALLDIR%LIB;%LIB%
@if exist "%ProgramFiles(x86)%\Microsoft Visual C++ Compiler Nov 2013 CTP\lib" set LIB=%ProgramFiles(x86)%\Microsoft Visual C++ Compiler Nov 2013 CTP\lib;%LIB%
@rem LIBPATH
@rem -------
@if exist "%VCINSTALLDIR%ATLMFC\LIB" set LIBPATH=%VCINSTALLDIR%ATLMFC\LIB;%LIBPATH%
@if exist "%VCINSTALLDIR%LIB" set LIBPATH=%VCINSTALLDIR%LIB;%LIBPATH%
@if exist "%FrameworkDir%%Framework40Version%" set LIBPATH=%FrameworkDir%%Framework40Version%;%LIBPATH%
@set LIBPATH=%FrameworkDir%%FrameworkVersion%;%LIBPATH%
@goto end
@REM -----------------------------------------------------------------------
:GetVSCommonToolsDir
@set VS120COMNTOOLS=
@call :GetVSCommonToolsDirHelper32 HKLM > nul 2>&1
@if errorlevel 1 call :GetVSCommonToolsDirHelper32 HKCU > nul 2>&1
@if errorlevel 1 call :GetVSCommonToolsDirHelper64 HKLM > nul 2>&1
@if errorlevel 1 call :GetVSCommonToolsDirHelper64 HKCU > nul 2>&1
@exit /B 0
:GetVSCommonToolsDirHelper32
@for /F "tokens=1,2*" %%i in ('reg query "%1\SOFTWARE\Microsoft\VisualStudio\SxS\VS7" /v "12.0"') DO (
@if "%%i"=="12.0" (
@SET "VS120COMNTOOLS=%%k"
)
)
@if "%VS120COMNTOOLS%"=="" exit /B 1
@SET "VS120COMNTOOLS=%VS120COMNTOOLS%Common7\Tools\"
@exit /B 0
:GetVSCommonToolsDirHelper64
@for /F "tokens=1,2*" %%i in ('reg query "%1\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7" /v "12.0"') DO (
@if "%%i"=="12.0" (
@SET "VS120COMNTOOLS=%%k"
)
)
@if "%VS120COMNTOOLS%"=="" exit /B 1
@SET "VS120COMNTOOLS=%VS120COMNTOOLS%Common7\Tools\"
@exit /B 0
@REM -----------------------------------------------------------------------
:error_no_VS120COMNTOOLSDIR
@echo ERROR: Cannot determine the location of the VS Common Tools folder.
@goto end
:error_no_VSINSTALLDIR
@echo ERROR: Cannot determine the location of the VS installation.
@goto end
:error_no_VCINSTALLDIR
@echo ERROR: Cannot determine the location of the VC installation.
@goto end
:error_no_FrameworkDIR32
@echo ERROR: Cannot determine the location of the .NET Framework 32bit installation.
@goto end
:error_no_FrameworkVer32
@echo ERROR: Cannot determine the version of the .NET Framework 32bit installation.
@goto end
:error_no_Framework40Version
@echo ERROR: Cannot determine the .NET Framework 4.0 version.
@goto end
:end
El 29/12/2014, a las 18:19, neoxeo notifications@github.com escribió:
C:\Users\lolo>cd /d E:\flightvars
E:\flightvars>E:\VS_2013\VC\vcvarsall.bat
E:\flightvars>md build
E:\flightvars>cd build
E:\flightvars\build>cmake .. -G "NMake Makefiles" -DBOOST_ROOT=E:/boost_1_56_0 -- The C compiler identification is MSVC 18.0.31101.0 -- The CXX compiler identification is MSVC 18.0.31101.0 -- Check for working C compiler: E:/VS_2013/VC/bin/cl.exe -- Check for working C compiler: E:/VS_2013/VC/bin/cl.exe -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: E:/VS_2013/VC/bin/cl.exe -- Check for working CXX compiler: E:/VS_2013/VC/bin/cl.exe -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Boost version: 1.56.0 -- Found the following Boost libraries: -- chrono -- date_time -- filesystem -- log -- log_setup -- regex -- system -- thread -- unit_test_framework -- Boost libraries are at E:/boost_1_56_0/stage/lib -- Configuring done -- Generating done -- Build files have been written to: E:/flightvars/build
E:\flightvars\build>nmake
Microsoft (R) Program Maintenance Utility Version 12.00.21005.1 Copyright (C) Microsoft Corporation. Tous droits réservés.
Scanning dependencies of target integration-tests [ 5%] Building CXX object common/CMakeFiles/integration-tests.dir/test/integration-test.cpp.obj integration-test.cpp [ 10%] Building CXX object common/CMakeFiles/integration-tests.dir/test/io/tcp-server-it.cpp.obj tcp-server-it.cpp E:\flightvars\common\include\flightvars/concurrent/executor.hpp(25) : error C2610: 'flightvars::concurrent::same_thread_executor::same_threadexecutor(flightvars::concurrent::same thread_executor &&)' : n'est pas une fonction membre spéciale qui peut être définie par défaut E:\flightvars\common\include\flightvars/concurrent/executor.hpp(37) : error C2610: 'flightvars::concurrent::asio_service_executor::asio_service_executor(flightvars::concurrent::asi o_service_executor &&)' : n'est pas une fonction membre spéciale qui peut être définie par défaut E:\flightvars\common\include\flightvars/util/either.hpp(56) : error C2610: 'flightvars::util::either::either(flightvars::util::either &&)' : n'est pas une fonction membre spéciale qui peut être définie par défaut E:\flightvars\common\include\flightvars/util/either.hpp(153) : voir la référence à l'instanciation de la classe modèle 'flightvars::util::either' en cours de compilati on E:\flightvars\common\include\flightvars/util/either.hpp(64) : error C2610: 'flightvars::util::either &flightvars::util::either::operator =(flightvars::util::either & &)' : n'est pas une fonction membre spéciale qui peut être définie par défaut E:\flightvars\common\include\flightvars/util/attempt.hpp(48) : error C2610: 'flightvars::util::attempt::attempt(flightvars::util::attempt &&)' : n'est pas une fonction membre spéciale qui peut être définie par défaut E:\flightvars\common\include\flightvars/util/attempt.hpp(110) : voir la référence à l'instanciation de la classe modèle 'flightvars::util::attempt' en cours de compilati on E:\flightvars\common\include\flightvars/util/attempt.hpp(51) : error C2610: 'flightvars::util::attempt &flightvars::util::attempt::operator =(flightvars::util::attempt &&) ' : n'est pas une fonction membre spéciale qui peut être définie par défaut E:\flightvars\common\include\flightvars/util/attempt.hpp(125) : error C2610: 'flightvars::util::attempt::attempt(flightvars::util::attempt &&)' : n'est pas une fonction membre spéciale qui peut être définie par défaut E:\flightvars\common\include\flightvars/util/attempt.hpp(128) : error C2610: 'flightvars::util::attempt &flightvars::util::attempt::operator =(flightvars::util::attempt &&)' : n'est pas une fonction membre spéciale qui peut être définie par défaut E:\flightvars\common\include\flightvars/io/connection.hpp(27) : error C2144: erreur de syntaxe : 'bool' doit être précédé de ';' E:\flightvars\common\include\flightvars/io/connection.hpp(28) : voir la référence à l'instanciation de la classe modèle 'flightvars::io::is_connection' en cours de compi lation E:\flightvars\common\include\flightvars/io/connection.hpp(27) : error C4430: spécificateur de type manquant - int est pris en compte par défaut. Remarque : C++ ne prend pas en char ge int par défaut NMAKE : fatal error U1077: 'E:\VS_2013\VC\bin\cl.exe' : code retour '0x2' Stop. NMAKE : fatal error U1077: 'E:\VS_2013\VC\BIN\nmake.exe' : code retour '0x2' Stop. NMAKE : fatal error U1077: 'E:\VS_2013\VC\BIN\nmake.exe' : code retour '0x2' Stop.nmak
Same error. Nmake is in version 12.00.21005.1... and you ?
— Reply to this email directly or view it on GitHub.
No problem Alvaro,
Thank you for your help and the time you give me.
I will try this solution and try also to compile with mingw (and gcc).
I'll give you result.
Laurent
Hi,
I try to compile but have error. MakeFile is created with : E:\flightvars>cmake .. -G "NMake Makefiles" -DBOOST_ROOT=e:\boost_1_56_0
After I try to compile with nmake but have errors : [ 10%] Building CXX object common/CMakeFiles/integration-tests.dir/test/io/tcp-server-it.cpp.obj tcp-server-it.cpp E:\flightvars\common\include\flightvars/concurrent/executor.hpp(25) : error C2610: 'flightvars::concurrent::same_thread_executor::same_threadexecutor(flightvars::concurrent::same thread_executor &&)' : n'est pas une fonction membre spéciale qui peut être définie par défaut E:\flightvars\common\include\flightvars/concurrent/executor.hpp(37) : error C2610: 'flightvars::concurrent::asio_service_executor::asio_service_executor(flightvars::concurrent::asi o_service_executor &&)' : n'est pas une fonction membre spéciale qui peut être définie par défaut E:\flightvars\common\include\flightvars/util/either.hpp(56) : error C2610: 'flightvars::util::either<T,U>::either(flightvars::util::either<T,U> &&)' : n'est pas une fonction membre spéciale qui peut être définie par défaut E:\flightvars\common\include\flightvars/util/either.hpp(153) : voir la référence à l'instanciation de la classe modèle 'flightvars::util::either<T,U>' en cours de compilati on E:\flightvars\common\include\flightvars/util/either.hpp(64) : error C2610: 'flightvars::util::either<T,U> &flightvars::util::either<T,U>::operator =(flightvars::util::either<T,U> & &)' : n'est pas une fonction membre spéciale qui peut être définie par défaut E:\flightvars\common\include\flightvars/util/attempt.hpp(48) : error C2610: 'flightvars::util::attempt::attempt(flightvars::util::attempt &&)' : n'est pas une fonction membre
spéciale qui peut être définie par défaut
E:\flightvars\common\include\flightvars/util/attempt.hpp(110) : voir la référence à l'instanciation de la classe modèle 'flightvars::util::attempt' en cours de compilati
on
E:\flightvars\common\include\flightvars/util/attempt.hpp(51) : error C2610: 'flightvars::util::attempt &flightvars::util::attempt::operator =(flightvars::util::attempt &&)
' : n'est pas une fonction membre spéciale qui peut être définie par défaut
E:\flightvars\common\include\flightvars/util/attempt.hpp(125) : error C2610: 'flightvars::util::attempt::attempt(flightvars::util::attempt &&)' : n'est pas une fonction
membre spéciale qui peut être définie par défaut
E:\flightvars\common\include\flightvars/util/attempt.hpp(128) : error C2610: 'flightvars::util::attempt &flightvars::util::attempt::operator =(flightvars::util::attempt