20080804 GUITOOLKIT 编译 static lib
http://www.yippeesoft.com
1、增加VC路径
D:\\vs2005\\VC\\include
D:\\MSSDK\\Include
2、add VisualStylesXP.cpp
VisualStylesXP.h to GuiLibStatic project
3、GuiLibStatic project 设置为 RELEASE
4、改用 多线程DLL
修改代码:
GuiToolBarWnd.cpp
改为:static int AFXAPI _AfxGetDropDownWidth()
GuiToolBarWnd.cpp
改为 static int _afxDropDownWidth = -1;
GuiDockContext.cpp
改为 AFX_STATIC void AFXAPI _AfxAdjustRectangle(CRect& rect, CPoint pt);
// &leftsign;
// int nXOffset = (pt.x < rect.left) ? (pt.x – rect.left) :
// (pt.x > rect.right) ? (pt.x – rect.right) : 0;
// int nYOffset = (pt.y < rect.top) ? (pt.y – rect.top) :
// (pt.y > rect.bottom) ? (pt.y – rect.bottom) : 0;
// rect.OffsetRect(nXOffset, nYOffset);
// &rightsign;
Project Dependencies
Project : CCuiAccess
Depends on:
unselect GuiLib, select GuiLibStatic
生成 GuiTk115Static.lib
编译 CGUIACCESS
将GUILIB的 #pragma comment(lib,"GuiTk115.lib")
改为 GuiTk115Static.lib
编译 运行 OK
““““““““““““
http://topic.csdn.net/t/20050906/17/4253280.html
guilib(guitoolkit) 如何使用它的静态库?有高手实现过吗?
http://topic.csdn.net/t/20040816/18/3280024.html
DEBUG时没问题,RELEASE时出现afxver_.h(130) : fatal error C1189: #error : Please use the
http://hi.baidu.com/ruoxinjiu/blog/item/6515933e4a73cb3b70cf6ce7.html
编译时的错误(一)—可能有用
http://www.vtk.org/pipermail/vtkusers/2005-May/079905.html
[vtkusers] How to debug the linker errors of the console application
http://www.codeproject.com/KB/library/guitoolkit.aspx
GuiToolkit MFC Extension
http://topic.csdn.net/t/20040620/22/3108411.html
连接过程中出现nafxcwd.lib和mbctype的问题,请问哪位高手知道如何解决?
http://www.pcreview.co.uk/forums/thread-1432196.php
Reply
Linker error __argv, __argc, __mbctype
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q148652
A LNK2005 error occurs when the CRT library and MFC libraries are linked in the wrong order in Visual C++
http://bytes.com/forum/thread285203.html
Static MFC in DLL (linker error)
http://archive.netbsd.se/?ml=mysql-plusplus&a=2006-02&t=1753713
Will MySQL++ will build under MFC?
http://www.gamedev.net/community/forums/topic.asp?topic_id=136470
Linker Errors (Again)
http://bytes.com/forum/thread282082.html
Linker error __argv, __argc, __mbctype
http://cboard.cprogramming.com/archive/index.php/t-10844.html
MFC: Multi-threaded DLL Errors & Related Syntax :: C++
http://blog.csdn.net/jiangxinyu/archive/2007/09/12/1782432.aspx
error LNK2001: unresolved external symbol _main解决办法
http://bbs.bc-cn.net/thread-139605-1-1.html
error LNK2001: unresolved external symbol??
http://hi.baidu.com/isbx/blog/item/cc4f0e2405c83e36c9955915.html
error LNK2001: unresolved external symbol解析
lnk2001:unresolved external symbol。。。为不确定的外部符号,如果连接程序不能在所有的库和目标文件内找到所引用的函数、变量或标签,将产生此错误消息。一般来说,发生错误的原因有两个:一是所引用的函数、变量不存在、拼写不正确或者使用错误;其次可能使用了不同版本的连接库。
lnk1120 你可以尝试在[Project] –> [Settings] –> 选择"Link"属性页,
在Project Options中将/subsystem:console改成/subsystem:windows
http://www.winu.cn/viewthread.php?tid=4945
GuiLib Toolkit MFC Extension
http://www.cnblogs.com/xcvm/archive/2007/03/13/346013.html
GuiToolkit 1.1.5编译的一点说明
你在guilib库工程下,打开资源编辑器的位图里面有三个位图ID分别为
IDB_GUI_DOCKBAR
IDB_GUI_DOCKBAROFFICE
IDB_GUI_MDIICONS
然后你把这些位图加载到你想要的例子程序当中,再是把guilib库工程GuiLibRes.h下的相应的ID的值,替换为在例子程序中生成的这些位图的ID的值,然后再重新编译就可以了
http://hi.baidu.com/redtramp/blog/item/ccc6bac305133d57b219a871.html
VC免费界面库GuiToolKit的编译
http://www.liuzhongshu.com/code/guitoolkit.html
GuiToolkit
http://69.10.233.10/KB/library/lua.aspx
Using Lua to control your application
http://support.microsoft.com/kb/148652
在 Visual C++ 中以错误的顺序链接 CRT 库和 MFC 库时出现 LNK2005 错误
http://www.codeguru.com/forum/archive/index.php/t-199089.html
Click to See Complete Forum and Search –> : nafxcwd.lib errors
http://www.zeroc.com/forums/help-center/1716-link-error-when-adding-mfc-header-dll-project.html
Link error when adding MFC header in dll project
http://genial.ycool.com/post.130646.html
今天编写程序的时候,发现一个错误是:
nafxcw.lib(appcore.obj) : error LNK2005: "public: __thiscall CWinApp::CWinApp(char const *)" (??0CWinApp@@QAE@PBD@Z) already defined in mfc42d.lib(MFC42D.DLL)
注意 already defined in mfc42d.lib(MFC42D.DLL
记得好像在哪里见过介绍,说是因为matlab目录下也有一个MFC42D.DLL, 所以这引起了该错误的发生。
后来在Setting 得C/C++ --》General中加入
,_AFXDLL
在include中加入:
mfc42d.lib msvcrtd.lib
就可以了
LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of other libs; use /NODEFAULTLIB:library
在忽略库中加入: msvcrt.lib就可以
http://www.codeguru.com/forum/archive/index.php/t-137642.html
Link error Problem with STL, Help!!
http://www.daniweb.com/forums/thread9052.html
Using MFC in a Static Library
http://forums.msdn.microsoft.com/en-US/vclanguage/thread/8cdbb019-1dc9-4b9c-a1c7-1dd7d4c2ba0e/
LNK2005 – delete already defined in nafxcwd.lib
http://www.eggheadcafe.com/forumarchives/vcmfc/oct2005/post24543519.asp
10/28/2005 2:53:36 PM Re: Linker errors
http://www.adobeforums.com/webx/.3bc8f1d4
Topic
Interlancer Sample Code Not Working
http://zjliu2001.blog.163.com/blog/static/422271542007104105117849/
Matlab6.5与VC6混合编程
http://zir5.blog.163.com/blog/static/984879420075183312793/
VC++ 中 link 2005的问题 (二)
http://www.softwelt.com/Know/KnowDetail-425975.html
问题:VC6静态连接的一个问题!!!!?
http://blog.csdn.net/ablo_zhou/archive/2007/07/20/1700531.aspx
VC6编译和链接的两个头疼问题
http://rs122.rapidshare.com/files/110633235/GuiLib1.6.zip
Re: Does anyone knows whew I can download the 1.6 which works in VS 2005? member mc13213 16:21 26 Apr \’08
http://rapidshare.com/files/110633235/GuiLib1.6.zip.html[^]
历史博文
- 通达信 资金流向 - 2010
- 20070709 LUA 调用 C 变量 - 2008
- 1018 pecofoods - 2007
- 0131 SIP VC2005 warning C4996 - 2006
- 扩充文件选择对话框的多选能力 - 2005