MongoDB C++ Driver Compile Error - mongodb

Try to work with MongoDb driver on VS 2010.
After include the fresh compiled MongoDB driver (nightly) using boost 1.4.9
have this error :
mongoclient.lib(1): error C2059: Syntaxfehler: '<'
mongoclient.lib(2): error C2018: Unbekanntes Zeichen '0x60'
mongoclient.lib(3): error C2059: Syntaxfehler: 'Ungültiges Suffix für Zahl'
mongoclient.lib(3): error C2018: Unbekanntes Zeichen '0x16'
............
fatal error C1003: Mehr als 100 Fehler gefunden; Kompilierung wird abgebrochen.

It is strongly recommended that you don't use the stand alone driver. Rather download and build the full mongodb source from git. This should get you the driver and header files (I don't have a windows box to test this with but this is true for OSX/Linux and the recommended solution for all platforms). Finally, link the library, don't include the .cpp file.
Best,
Charlie

Related

Linking the Intel Math Kernel Library (MKL) with ABAQUS 2019 user-subroutines

I'm currently struggeling with linking / activating the MKL for ABAQUS 2019 user-subroutines. In detail I want to make use of the LAPACK functions dgetrf, dgetrs and xerbla in one of my UMAT subroutines.
While compiling, I get the following error message (hope the German version does not bother you):
LemaitreDamageModel.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "xerbla" in Funktion "solve_for_inverse".
LemaitreDamageModel.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "dgetrf" in Funktion "solve_for_inverse".
LemaitreDamageModel.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "dgetrs" in Funktion "solve_for_inverse".
I then had a look at my Abaqus batch file, which looks like this:
#echo off
IF NOT DEFINED abaqus_intel_compiler (
call "C:\Program Files (x86)\Intel\ifort\compilers_and_libraries\windows\bin\ifortvars.bat" intel64
set abaqus_intel_compiler=1
)
"C:\SIMULIA\CAE\2019\win_b64\code\bin\ABQLauncher.exe" %*
The called batch file ifortvars.bat holds the following line, which looks like the MKL is already poperly incoorporated in the process:
if exist "%BIN_ROOT%..\mkl\bin\mklvars.bat" #call "%BIN_ROOT%..\mkl\bin\mklvars.bat" %C_TARGET_ARCH% %TARGET_VS% %LP64_ILP64%
The file mklvar.bat is definetly there. I also tried to do the call via a direct path to the file, but that also didn't helped.
However, what can I do to get rid of the above error message? Obviously, there is still something wrong with the MKL linking.

Net::SSH2::Simple failed after update to Windows10

there
On Net::SSH2::Simple,
It has been no longer connected by ssh after update Windows7 to Windows10.
With following error.
Net::SSH2::net_ss_timeout: invalid object Net::SSH2::Simple=SCALAR(0x3f5c218) at C:/Strawberry/perl/vendor/lib/Net/SSH2.pm line 111.
at C:/Strawberry/perl/vendor/lib/Net/SSH2.pm line 111.
Net::SSH2::connect(Net::SSH2::Simple=SCALAR(0x3f5c218), "xxxx.com", 22) called at C:/tool/eclipse_classic/workspace/test/work14.pl line 98
(in cleanup) Net::SSH2::net_ss_DESTROY: invalid object Net::SSH2::Simple=SCALAR(0x3f5c218) at C:/tool/eclipse_oxygen/eclipse/workspace/.metadata/.plugins/org.epic.debug/perl5db.pl line 4211.
My code are
use Net::SSH2::Simple;
$ssh2 = Net::SSH2::Simple->new();
$ssh2->connect( 'xxxx.com', 22 ) ;
$ssh2->auth_password( 'username', 'passwd' );
Error comes up at "$ssh2->connect" line.
But
This code works fine by using Net::SSH2.
Only Net::SSH2::Simple doesn't work.
To xxxx.com connection is fine. and no username,password mistakes found.
How can I fix that.
Windows10 64bit
Strawberry Perl 5.30.1.1 (64bit)
Eclipse Oxygen
EPIC 0.77
Thanks
Net::SSH2::Simple 0.01 was released Dec 13 2009. At that time Net::SSH2 was at 0.28 (2009-10-24), it is now at 0.70 (2019-3-17).
I got Net::SSH2::Simple to work on Windows10 64bit / Strawberry Perl 5.30.0.1 (64bit) by installing the earlier version 0.58 (2015-12-20) of Net::SSH2 using
cpan install SALVA/Net-SSH2-0.58.tar.gz
Version 0.59_20 (2016-05-11) gives the 'net_ss_timeout: invalid object' error . The change log for version 0.59_01 has this warning
** WARNING: this release includes lots of changes, some
visible, most internal. Regressions are expected. Also,
it introduces some minor backward incompatible changes -
but in those cases, the old behavior was broken or insane
anyway.

How to build c bindings for zookeeper in windows?

facing errors in opening the solution file ..error unable to convert the solution file vs 2011 Conversion Report - Cli.vcproj:
Converting project file 'D:\zookeeper\zookeeper-3.4.8\src\c\Cli.vcproj'.
Done converting to new project file 'D:\zookeeper\zookeeper-3.4.8\src\c\Cli.vcxproj'.
VCWebServiceProxyGeneratorTool is no longer supported. The tool has been removed from your project settings.
Conversion Report - :
The following error has occurred during XML parsing: File: D:\zookeeper\zookeeper-3.4.8\src\c\zookeeper.vcproj Line: 1 Column: 1 Error Message: Incorrect document syntax. The file 'D:\zookeeper\zookeeper-3.4.8\src\c\zookeeper.vcproj' has failed to load.

Matlab error using accelerator mode

I´m building a complex model in Simulink which took 50 minutes to run completely. I would like to use the accelerator mode but, after install the right version of virtual studio and SDK (http://www.mathworks.com/matlabcentral/answers/96050-how-can-i-set-up-microsoft-visual-studio-2008-express-edition-for-use-with-matlab-7-7-r2008b-on-32) I still have this error:
### Building the Accelerator target for model: deg_final_FAST
### Generating code into build directory: H:\ale peticchia_March2016\Simulink\model\deg_final_FAST_accel_rtw
Warning: Function H:\ale peticchia_March2016\Simulink\model\input.m has
the same name as a MATLAB builtin. We suggest you rename the function to
avoid a potential name conflict.
### Invoking Target Language Compiler on deg_final_FAST.rtw
tlc
-r
H:\ale peticchia_March2016\Simulink\model\deg_final_FAST_accel_rtw\deg_final_FAST.rtw
C:\Program Files\MATLAB\R2008b\rtw\c\accel\accel.tlc
-OH:\ale peticchia_March2016\Simulink\model\deg_final_FAST_accel_rtw
-IC:\Program Files\MATLAB\R2008b\rtw\c\accel
-IH:\ale peticchia_March2016\Simulink\model\deg_final_FAST_accel_rtw\tlc
-IC:\Program Files\MATLAB\R2008b\rtw\c\tlc\mw
-IC:\Program Files\MATLAB\R2008b\rtw\c\tlc\lib
-IC:\Program Files\MATLAB\R2008b\rtw\c\tlc\blocks
-IC:\Program Files\MATLAB\R2008b\rtw\c\tlc\fixpt
-IC:\Program Files\MATLAB\R2008b\stateflow\c\tlc
-aEnforceIntegerDowncast=1
-aFoldNonRolledExpr=1
-aInlineInvariantSignals=0
-aInlineParameters=0
-aLocalBlockOutputs=1
-aRollThreshold=5
-aForceBlockIOInitOptimize=0
-aGenerateReport=0
-aGenCodeOnly=0
-aRTWVerbose=1
-aIncludeHyperlinkInReport=0
-aLaunchReport=0
-aGenerateTraceInfo=0
-aForceParamTrailComments=0
-aGenerateComments=1
-aIgnoreCustomStorageClasses=1
-aIncHierarchyInIds=0
-aMaxRTWIdLen=31
-aShowEliminatedStatements=0
-aIncDataTypeInIds=0
-aInsertBlockDesc=0
-aIgnoreTestpoints=0
-aSimulinkBlockComments=1
-aInlinedPrmAccess="Literals"
-aTargetFcnLib="ansi_tfl_table_tmw.mat"
-aIsPILTarget=0
-aLogVarNameModifier="rt_"
-aGenerateFullHeader=1
-aGenerateTraceInfo=0
-aIgnoreTestpoints=0
-p10000
### Loading TLC function libraries
...
### Initial pass through model to cache user defined code
....
### Caching model source code
......................................................................
### Writing header file deg_final_FAST_acc_types.h
### Writing header file deg_final_FAST_acc.h
### Writing source file deg_final_FAST_acc.c
.
### Writing header file deg_final_FAST_acc_private.h
### Writing source file deg_final_FAST_acc_data.c
### Writing header file rt_nonfinite.h
### Writing source file rt_nonfinite.c
.
### Writing header file rtGetInf.h
### Writing source file rtGetInf.c
### Writing header file rtGetNaN.h
### Writing source file rtGetNaN.c
.
### TLC code generation complete.
Warning: Function H:\ale peticchia_March2016\Simulink\model\input.m has
the same name as a MATLAB builtin. We suggest you rename the function to
avoid a potential name conflict.
.
### Processing Template Makefile: C:\Program Files\MATLAB\R2008b\rtw\c\accel\accel_vcx64.tmf
### deg_final_FAST.mk which is generated from C:\Program Files\MATLAB\R2008b\rtw\c\accel\accel_vcx64.tmf is up to date
### Building deg_final_FAST: .\deg_final_FAST.bat
H:\ale peticchia_March2016\Simulink\model\deg_final_FAST_accel_rtw>call "C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\/../../VC/vcvarsall" AMD64
Setting environment for using Microsoft Visual Studio 2008 Beta2 x64 tools.
WindowsSdkDir not found
Microsoft (R) Program Maintenance Utility, Version 9.00.21022.08
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.
C:\PROGRA~1\MATLAB\R2008b\rtw\c\tools\vctools.mak(8) : fatal error U1052: Datei "ntwin32.mak" nicht gefunden
Stop.
The make command returned an error of 2
'An_error_occurred_during_the_call_to_make' is not recognized as an internal or external command,
operable program or batch file.
### Real-Time Workshop build procedure for model: 'deg_final_FAST' aborted due to an error.
Warning: Function H:\ale peticchia_March2016\Simulink\model\input.m has
the same name as a MATLAB builtin. We suggest you rename the function to
avoid a potential name conflict.
Warning: Function H:\ale peticchia_March2016\Simulink\model\input.m has
the same name as a MATLAB builtin. We suggest you rename the function to
avoid a potential name conflict.
Warning: Function H:\ale peticchia_March2016\Simulink\model\input.m has
the same name as a MATLAB builtin. We suggest you rename the function to
avoid a potential name conflict.
??? Error using ==> Degradation_model_matlab_fast at 27
Problem creating Accelerator MEX file for model 'deg_final_FAST'. Error
returned is:
Error using ==> genMakefileAndBuild at 1079
Error(s) encountered while building model "deg_final_FAST".
Do you have suggestions?
Thanks for your help!
matlab R2008b
win7 64bit

arm-buildroot-linux-uclibcgnueabihf-gcc: erreur: unrecognized command line option ‘-mno-tls-direct-seg-refs’

I tried to use the defconfig of raspberrypi2 of buildroot then I run the command make.Until now all things are good,but when I added some target packages then I run make I got this error:
arm-buildroot-linux-uclibcgnueabihf-gcc: erreur: unrecognized command line option ‘-mno-tls-direct-seg-refs’
this link contain all the messages that I got on my console:http://pastebin.com/mgVthm8z
The -mno-tls-direct-seg-refs option is a x86 specific option, that libselinux is trying to use with an ARM toolchain. Which obviously cannot work. Seems like a bug in the libselinux package. As Yegor said, please report this to the Buildroot mailing list or bug tracker.
I got this:
The Makefile of libselinux performs the following check:
ARCH := $(patsubst i%86,i386,$(shell uname -m))
ifneq (,$(filter i386,$(ARCH)))
TLSFLAGS += -mno-tls-direct-seg-refs
endif
Which means that if the host machine is an x86, then TLSFLAGS will
contain -mno-tls-direct-seg-refs. That command line option causes
libselinux to fail when building it for target architectures where the
compiler doesn't support that option, i.e. MIPS:
mips-img-linux-gnu-gcc: error: unrecognized command line option
‘-mno-tls-direct-seg-refs’
So to fix that problem we can set the ARCH variable to $(KERNEL_ARCH),
and then append it to the LIBSELINUX_MAKE_OPTS.
Signed-off-by: Vicente Olivert Riera
link: https://patchwork.ozlabs.org/patch/518324/