编译LOADCEPC.EXE程序

1.安装编译工具

安装MSVC152路径C:/MSVC;

安装MASM611可以自己指定E:/MASM611;

2 命令行编译

相关文件配置 

修改setupen2.bat 如下:

:PATH_DONE

set PATH=%__MSVCDIR%/bin;%PATH%;%_WINCEROOT%/sdk/bin/i386;E:/MASM611/BIN

set MSDevDir=%__MSVCDIR%

set LIB=%__MSVCDIR%/lib

set INCLUDE=%__MSVCDIR%/include

goto DONE 

bootarg.h拷贝到C:/WINCE600/PLATFORM/CEPC/SRC/BOOTLOADER/DOS/LOADCEPC该文件在C:/WINCE600/PLATFORM/COMMON/SRC/SOC/X86_MS_V1/INC 

分别把ethmain.c,video.c里面的#include<../../inc/bootarg.h>改成#include<bootarg.h>

相关命令

>CD C:/WINCE600/PLATFORM/CEPC/SRC/BOOTLOADER/DOS/LOADCEPC

>SET _WINCEROOT=C:/WINCE600

>SETUPENV

 

结果显示

*** 16-bit dev mode - type exit to return to normal ***

>PATH

PATH=C:/msvc/bin;e:/MWOS/DOS/BIN;C:/WINDOWS/system32;C:/WINDOWS;C:/WINDOWS/System32/Wbem;C:/Program Files/Microsoft SQL Server/80/Tools/BINN;C:/Program Files/Microsoft SQL Server/90/Tools/binn/;E:/PROGRA~1/Borland/Delphi6/Bin;E:/PROGRA~1/Borland/Delphi6/Projects/Bpl;C:/Program Files/StormII/Codec;C:/Program Files/Storm

II;;C:/WINCE600/sdk/bin/i386;E:/MASM611/BIN

 

这里一定要存在PATH=C:/msvc/bin;E:/MASM611/BIN;C:/WINCE600/sdk/bin/i386;这个3个路径是编译LOADCEPC的关键。

 

*** 16-bit dev mode - type exit to return to normal ***

>nmake /F loadcepc.mak

显示结果

Microsoft (R) Program Maintenance Utility   Version 1.40

Copyright (c) Microsoft Corp 1988-93. All rights reserved.

 

        cl /I . /nologo /Gs /G2 /W4 /Z7 /Ox /D "NDEBUG" /D "_DOS" /D "CEDDK_USED

DKMACRO" /Fc /FR /I ../../INC  /c MAIN.C

main.c

main.c(1) : warning C4001: nonstandard extension 'single line comment' was

Definitions File [nul.def]: ;

        bscmake @C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/nm002092.

Microsoft Browser Database Maintenance Utility Version 2.51

Copyright (c) Microsoft Corp 1990-1993. All rights reserved.

3、VC++ 152编译

修改loadcepc.mak,这是一个工程文件,MSVC1.52来执行.添加环境变量即可。

#

#

# Microsoft Visual C++ generated build script - Do not modify

path=C:\MSVC\BIN;E:\MASM611\BIN

PROJ = LOADCEPC

DEBUG = 0

PROGTYPE = 6

CALLER =

ARGS =

DLLS =

D_RCDEFINES = -d_DEBUG

R_RCDEFINES = -dNDEBUG

ORIGIN = MSVC

如代码中红色提示部分。

运行MSVC1.52, Project->Open中选择loadcepc.mak文件,并确定

Project->Build LOADCEPC.EXE,loadcepc目录下产生了一个新的loadcepc.exe.

 

 

 

 

编译工具及方法资源下载地址

http://download.csdn.net/detail/blaider/5723491

你可能感兴趣的:(编译LOADCEPC.EXE程序)