wince 如何使用Makefile

thinkers 2008-09-11 04:56:06
由于一些原因,我的ce工程需要使用makefile来编译。
但我发现eVC的makefile 老是出错。
我很简单的生成一个MFC exe工程t2,什么也没加,用IDE编译很正常。但我在project->export makefile后在console中使用 NMAKE /f "t2.vcn" CFG="t3 - Win32 (WCE x86) Debug",得到:
C:\Program Files\Microsoft eMbedded C++ 4.0\Common\EVC\MyProjects\t3>NMAKE /f "t
3.vcn" CFG="t3 - Win32 (WCE x86) Debug"

Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

Variable CESubsystem not specified. Defaulting to windowsce,2.11
Variable CEVersion not specified. Defaulting to 211
cl.exe @C:\DOCUME~1\song-8\LOCALS~1\Temp\nma04024.
StdAfx.cpp
rc.exe /l 0x409 /fo".\X86Dbg\t3.res" /d UNDER_CE=200 /d _WIN32_WCE=200 /
d "UNICODE" /d "_UNICODE" /d "DEBUG" /d "WIN32_PLATFORM_UNKNOWN" /d "_X86_" /d "
x86" /d "_i386_" /d "_AFXDLL" /r .\t3.rc
cl.exe @C:\DOCUME~1\song-8\LOCALS~1\Temp\nmb04024.
t3.cpp
MainFrm.cpp
t3Doc.cpp
t3View.cpp
Generating Code...
link.exe @C:\DOCUME~1\song-8\LOCALS~1\Temp\nmc04024.
t3.obj : warning LNK4229: invalid directive '/ignore:4089' encountered; ignored
StdAfx.obj : warning LNK4229: invalid directive '/ignore:4089' encountered; igno
red
MainFrm.obj : warning LNK4229: invalid directive '/ignore:4089' encountered; ign
ored
t3Doc.obj : warning LNK4229: invalid directive '/ignore:4089' encountered; ignor
ed
t3View.obj : warning LNK4229: invalid directive '/ignore:4089' encountered; igno
red
LINK : fatal error LNK1104: cannot open file 'MFCCE200d.lib'
NMAKE : fatal error U1077: 'link.exe' : return code '0x450'
Stop.

我全盘搜索都找不到文件'MFCCE200d.lib'
谁有把工程生成 Makefile然后能用nmake编译的?

万分感激
...全文
331 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
小赌移情 2009-04-02
  • 打赏
  • 举报
回复
[猜的]

CESubsystem這個宏你定義下子, 可能是默認為wince2.11的版本, 所以要找那個過時的mfcce200d.dll了,
看下你機子上的mfccexx.dll是什么版本的, 你就定義為那個.

Jacky_Dai 2009-04-01
  • 打赏
  • 举报
回复
没有用过,学习一下
rushonin 2009-04-01
  • 打赏
  • 举报
回复
可能是EVC没有装全吧,怎么会没有MFC的库呢?
91program 2008-09-11
  • 打赏
  • 举报
回复
EVC的命令行用过,但是没有用过nmake

19,518

社区成员

发帖
与我相关
我的任务
社区描述
硬件/嵌入开发 嵌入开发(WinCE)
社区管理员
  • 嵌入开发(WinCE)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧