随笔分类 - TIPS
1
摘要:File "/home/evan/bin/gclient.py", line 1705, in <module> result = Main(sys.argv) File "/home/evan/bin/gclient.py", line 1700, in Main return DispatchCommand(command, options, args) File "/home/evan/bin/gclient.py", line 1631, in DispatchCommand return command_map[
阅读全文
摘要:Create An AccountBrowse tohttp://gerrit.chromium.org/and complete the registration process. You must register usingOpenId. OpenId provides secure single-sign-on, so you don’t need to create a new account or remember another password. If you have a Google account or a Yahoo ID, you’re all set. There
阅读全文
摘要:Git的代理设置也非常简单,一句话就搞定了:git config --global http://proxy.yourname.com:8080如果需要用户名密码的话,则设置:git config –global http.proxy http://user:password@proxy.yourname.com:8080其中user和password分别为你的用户名和密码。设置完成后,可以通过如下命令来查看设置是否生效:git config –get –global http.proxy如果某一天你不喜欢她了,需要删除代理设置,那么可以使用:git config --system (或 --
阅读全文
摘要:产生原因:由于系统分配给程序的栈空间太小,同时当程序静态数据量大时会产生栈溢出问题。解决方法:1.可以通过改变默认栈空间来解决 VC下设置:项目-> 属性-> 链接器-> system-> 堆栈保留大小/堆栈提交大小。如: 把堆栈的大小已经设置为: 堆栈保留大小为:100000000; 堆栈提交大小为: 100000000; 但是栈开辟较大的值,会增加内存的开销和启动时间。2.不要静态分配,尽量动态分配 用new,delete动态创建,这是从堆中分配的,堆的空间足够大。千万记得写析构函数delete申请的堆空间。养成“不在栈上定义大数组/大对象”的好习惯非常重要,因为再
阅读全文
摘要:1.安装ITK在 linux 下配置 ITK1. 下载 CMake:http://www.cmake.org/cmake/resources/software.html 为方便安装,这里下载二进制文件,选择下载: cmake-2.6.4-Linux-i386.sh2. 安装 CMake, 到 cmake-2.6.4-Linux-i386.sh 存放的目录,输入,可用 TAB 键方便补齐命令 #./ cmake-2.6.4-Linux-i386.sh 阅读授权文件,最后按照提示输入 y 接受,CMake 的安装目录这时可以指定,也可以接受默认路径 这里会提示是否为 CMake 创建一单独的目录,
阅读全文
摘要:一个单链表中查找值的简单程序:[代码]它只能适用于值为整数的链表。若使用函数指针,调用者编写函数用于比较两个值,然后把一个指向这个函数的指针作为参数传递给查找函数。把函数类型声明为void *,表示一个“一个指向未知类型的指针”。下面一个程序是查找函数与类型无关:[代码]一个比较函数示例:[代码]使用:[代码]
阅读全文
摘要:1.在stdafx.h头文件中加入 #include atlimage.h2.保存图片 方法一: [代码] 方法二:[代码]参考:http://blog.sina.com.cn/s/blog_56e19aa70100c59k.html http://blog.sina.com.cn/s/blog_56e19aa70100c5a0.html
阅读全文
摘要:This isn't a header file issue. Header files are for compiling. This is a linking issue. It needs a library that contains gluPerspective. That library is libGLU.Try:g++ -Wall -o cube main.cpp imageloader.cpp -lglut -lGLU -lGL
阅读全文
摘要:1.安装基本库 sudo apt-get install build-essential2.安装opengl工具箱 sudo apt-get install freeglut3-dev3.Coding...4.g++ ***.c -o *** -lglut5../***
阅读全文
摘要:You have to include resource.h, where the resource editor defines 'IDC_***' or 'IDD_***'
阅读全文
摘要:问题:error LNK2019: 无法解析的外部符号 _gluPerspective@32参考解决方案:#include gl\gl.h //opengl32.lib#include gl\glu.h //glu32.lib#pragma comment(lib, "OPENGL32.LIB")#pragma comment(lib, "GLU32.LIB")put it in stdafx.h注:#pragma comment使得程序无需在编译器中设置additional lib。参考:http://topic.csdn.net/u/20090320/02/AC82DCB7-8
阅读全文
摘要:问题:MFC程序移植到64位WIN7时,编译通过,但运行时弹出如下对话框。 解决方法:排除指针由32位变动到64位引起的原因后,将用到的DLL文件放在 syswow64 目录下。参考:http://topic.csdn.net/u/20100815/00/21800B99-EBA8-4605-BBFE-5639A5C6AE40.html
阅读全文
摘要:原文链接:http://tutorial.it55.com/ChengXuKaiFa/VisualC/2009/12/17/16472716660.html 用MFC制作的工程由很多文件构成,它不能象一般C++程序那样随意在类外定义全局变量,在这里要想定义能被工程内多个文件共享的全局变量和函数必须用一些特殊方法才行。实际上有多种方法可以实现,这里只介绍两种方法。一、在应用程序类中定义 用MFC生成的工程中都有一个名为CxxxApp的类,它派生于CWinApp类。这个类主要进行程序的初始化,生成文档、视图对象等工作。我们可以把需要全局访问的变量和函数定义为这个类的成员变量和成员函数,就可以实
阅读全文
摘要:在OnHScroll开始时添加几个CWnd*变量,在和参数中pScrollBar判断就可以了[代码]原帖地址:http://hi.baidu.com/ncudlz/blog/item/fba375dd6b6b74d18d1029d8.html
阅读全文
摘要:error.>Linking...3>oclUtils32D.lib(shrUtils.obj) : error LNK2019: unresolved external symbol "public: static void __cdecl std::_Locinfo::_Locinfo_ctor(class std::_Locinfo *,class std::basic_stri...
阅读全文
摘要:Debianroot user:suInstall gcc: 1.apt-get install gcc 2.apt-get install make 3.apt-get install gdb Install all: apt-get install build-essentialOpen and edit files: vim ..directory...
阅读全文
摘要:编译结果:1>msvcprt.lib(MSVCP80.dll) : error LNK2005: ...解决方法一:保证需要链接的几个项目的运行时库使用同一个类型。解决方法二:在项目属性->链接器->命令行中设置 /FORCE:MULTIPLE 也可以避免LNK1169 & LNK2005,但不知道是否会有副作用。
阅读全文
摘要:编译结果:1>test.obj : error LNK2019: 无法解析的外部符号 __imp____glutInitWithExit@12,该符号在函数 _glutInit_ATEXIT_HACK@8 中被引用1>test.obj : error LNK2019: 无法解析的外部符号 __imp____glutCreateWindowWithExit@8,该符号在函数 _glutC...
阅读全文
摘要:http://www.cppblog.com/guojingjia2006/archive/2009/01/08/68874.htmlOpenGL vs2008中碰到的配置问题,网上找了下,以下和我碰到的一样,可以解决,感谢作者 unresolved external symbol __imp____glutInitWithExit@12 unresolved external symbol __...
阅读全文
摘要:一,问题描述error LNK2001: unresolved external symbol _WinMain@16debug/main.exe:fatal error LNK 1120:1 unresolved externals error executing link.exe;二,产生这个问题可能的原因1, 你用vc建了一个控制台程序,它的入口函数应该是main, 而你使用了WinMain...
阅读全文
1

浙公网安备 33010602011771号