摘要: 1.mount iso镜像文件:mount -o loop -t iso9660 /mnt/hgfs/E/rhel-server-6.2-x86_64-dvd.iso /mnt/local_yum/2.创建配置文件:vi /etc/yum.repos.d/rhel-media.repo,并输入以下内... 阅读全文
posted @ 2015-02-21 17:26 Run.L 阅读(139) 评论(0) 推荐(0)
摘要: 转自:http://www.cnblogs.com/LinuxHunter/archive/2013/01/06/2848293.html#include #include #include const std::string ws2s( const std::wstring& src ){ std... 阅读全文
posted @ 2014-07-10 17:31 Run.L 阅读(424) 评论(0) 推荐(0)
摘要: Release版本不要打开运行时检查,否则会降低性能。多线程DLL是为了和其他编译的裤匹配。关于LTGC和GL选项的文章:http://blogs.msdn.com/b/vcblog/archive/2009/12/01/gl-and-pgo.aspxhttp://blogs.msdn.com/b/... 阅读全文
posted @ 2014-04-29 14:17 Run.L 阅读(727) 评论(0) 推荐(0)
摘要: 问题描述如题,也查到了一个buglist:http://trac.wxwidgets.org/ticket/13283这个问题至今没有彻底解决,但是其中也说道了一个workaround方法:Replying to jedimark: [...] I did discover a workaround.. In the application compatibility settings check Disable Desktop Composition and the problem vanishes.. I also have a wxGLCanvas inside a wxScrolled 阅读全文
posted @ 2014-03-19 14:52 Run.L 阅读(525) 评论(0) 推荐(0)
摘要: os:redhat enterprice 6.0 x64gcc:4.8.2(需要编译安装)1.编译wxwidgets2.8可能先要安装opengl的development头文件和库:yum install mesa-libGLyum install mesa-libGL-develyum install mesa-libGLUyum install mesa-libGLU-develrelease版:(1)mkdir build_release(2)cd build_release(3)../configure --with-gtk --with-opengl --disable-shared 阅读全文
posted @ 2014-02-25 17:18 Run.L 阅读(322) 评论(0) 推荐(0)
摘要: 在c++的chrono中没有找到相应的实现,只好从boost里面找了,代码如下:#include// Get current time from the clock, using microseconds resolutionconst boost::posix_time::ptime now = boost::posix_time::microsec_clock::local_time();// Get the time offset in current dayconst boost::posix_time::time_duration td = now.time_of_day();fra 阅读全文
posted @ 2014-02-22 09:11 Run.L 阅读(5819) 评论(0) 推荐(0)
摘要: 在使用vs2013编译boost-1.55.0之前,先要给boost打个补丁,补丁如下(可直接该源文件): 1 Index: has_member_function_callable_with.hpp 2 3 ============================================... 阅读全文
posted @ 2014-02-16 09:56 Run.L 阅读(3695) 评论(0) 推荐(2)
摘要: 这是一个简单的scheduler,用于在同一个线程上下文(thread context)中执行不同的任务,以避免某些情况下的复杂的竞争。 1 #pragma once 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 9 using namespace std;10 11 enum{12 CALLBACK_FUCN = 0,13 SHUTDOWN = 114 };15 16 struct callback_t;17 typedef int (*callback_func)(str... 阅读全文
posted @ 2014-02-15 11:40 Run.L 阅读(1535) 评论(0) 推荐(0)
摘要: Boost.Interprocess只需要引入头文件就可以使用,常用的包括:1.普通共享内存#include #include 2.消息队列#include 参考:http://www.ibm.com/developerworks/cn/aix/library/au-concurrent_boost/ 阅读全文
posted @ 2014-02-11 15:45 Run.L 阅读(696) 评论(0) 推荐(0)