Something relates to Computer Science and Technology, something relates to China and something I am not sure!
Sunday, May 27, 2012
Sunday, May 20, 2012
矛盾死了!
很想释放自己,看看自己到底是什么样子。
但脖子上的枷锁总是打不开!
于是我问自己,那到底是枷锁,还是我自己?
还是我已经习惯了,离不开它了?
想回答这个问题,却需要打开另一个枷锁!
看来死锁了,我需要一个信号量!
Thursday, May 10, 2012
This is life...
Life likes a Markov chain, from time point of view;
Life likes a Particle system, from spital point of view;
说白了就是平时犯贱,事后后悔...
Wednesday, May 2, 2012
“char16_t” conflict when using Visual Studio 2010 and Matlab 2010 Mcc
The full error message is as followed:
1>c:\program files (x86)\matlab\r2008a\extern\include\matrix.h(345): error C2371: 'char16_t' : redefinition; different basic types
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\yvals.h(576) : see declaration of 'char16_t'
I found two method to solve this problem from web:
1. Put all the Matlab related code into a namespace;
2. Insert a simple code like the follows:
1: #include "fminlbfgs.h"2: #include "DemonEnergy.h"3: //**********************************************4: #ifdef _CHAR16T
5: #define CHAR16_T6: #endif7: //**********************************************8: #include "Optimizer\libOptimizer.h"In the above code segment, “#include "Optimizer\libOptimizer.h"” is the header file of MCC generated library.
Subscribe to:
Posts (Atom)