error PRJ0004 : Could not genera…

来源:互联网 发布:容联云通讯 知乎 编辑:程序博客网 时间:2024/05/17 22:24
When I tried to transfer a WIN32 static library project to aCE/Mobile project
so that I could use stitch 2 configuration with one project toboth build CE/Mobile lib
and WIN32 lib just as I wanted. However, Imet the following errors:

    error PRJ0004 : Could notgenerate command line for the 'VCCLCompilerTool' tool 

Solutions:
   (1) Looks like VS cannotautomatically change some configuration, modify macros as:
        _DEBUG;_WIN32_WCE=$(CEVER);UNDER_CE;$(PLATFORMDEFINES);WINCE;DEBUG;$(ARCHFAM);$(_ARCHFAM_);POCKETPC2003_UI_MODEL

  (2) Change Debuginformation setting, add switch "/Zi"

After that, the issue was gone.


Reference:
1. http://translate.google.com.hk/translate?hl=zh-CN&langpair=en|zh-CN&u=http://msdn.microsoft.com/en-us/library/958x11bc(v=vs.71).aspx
2. http://translate.google.com.hk/translate?hl=zh-CN&langpair=en|zh-CN&u=http://msdn.microsoft.com/en-us/library/958x11bc.aspx



 
0 0
原创粉丝点击