Re: Compiling CERDISP.exe

From: Thomas Kuhn (tomkuhn_at_cfl.rr.com)
Date: 11/08/04


Date: 8 Nov 2004 10:49:13 -0800

Just as an update,

I read about running "Open Build Release Directory", going to the dir
where the code is, and running "Build". This seems to build
something, but not the Exe, only Obj files. I have since been working
in he WINCE40\Public\common\oak\drivers\cerdisp directory (I know I am
not supose to change the code in there). I changed the Sources file
Have TARGETTYPE=PROGRAM.

At his point I get linking errors.

Here is the build log for when I compire with the original
TARGETTYPE=LIBRARY

BUILD: Computing Include file dependencies:
BUILD: Examining c:\wince420\public\common\oak\drivers\cerdisp\cerdisp
directory for files to compile.
Linking c:\wince420\public\common\oak\drivers\cerdisp\cerdisp
directory ********************
'NMAKE.EXE -i -c BUILDMSG=Stop. LINKONLY=1 NOPASS0=1 NTTEST= UMTEST='
makefile.def: BUILDROOT is C:\WINCE420\PUBLIC\COMMON
makefile.def: including C:\WINCE420\PUBLIC\COMMON\sources.cmn
Stop.
BUILD: Done

And this is when it is set to PROGRAM:

BUILD: Computing Include file dependencies:
BUILD: Examining c:\wince420\public\common\oak\drivers\cerdisp\cerdisp
directory for files to compile.
Linking c:\wince420\public\common\oak\drivers\cerdisp\cerdisp
directory ********************
'NMAKE.EXE -i -c BUILDMSG=Stop. LINKONLY=1 NOPASS0=1 NTTEST= UMTEST='
makefile.def: BUILDROOT is C:\WINCE420\PUBLIC\COMMON
makefile.def: including C:\WINCE420\PUBLIC\COMMON\sources.cmn
        set LIB=C:\WINCE420\sdk\CE\lib
        link /LARGEADDRESSAWARE
-out:C:\WINCE420\public\COMMON\oak\target\ARMV4I\retail\CERDisp.exe
-machine:thumb @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nm4BAF.tmp
Microsoft (R) Incremental Linker Version 6.24.3064
Copyright (C) Microsoft Corporation. All rights reserved.

-nodefaultlib
-entry:WinMainCRTStartup
-debug -debugtype:cv -incremental:no /opt:ref
-pdb:C:\WINCE420\public\COMMON\oak\target\ARMV4I\retail\CERDisp.pdb
-map:C:\WINCE420\public\COMMON\oak\target\ARMV4I\retail\CERDisp.map
-savebaserelocations:C:\WINCE420\public\COMMON\oak\target\ARMV4I\retail\CERDisp.rel
-MERGE:.rdata=.text -merge:.astart=.text -align:4096
-ignore:4001,4070,4078,4086,4089,4096,4099,4108 /STACK:65536,4096
-subsystem:windowsce,4.20
-base:0x00010000
obj\ARMV4I\retail\cerdisp.res obj\ARMV4I\retail\cerdisp.obj
C:\WINCE420\public\common\sdk\lib\ARMV4I\retail\corelibc.lib
cerdisp.obj : error LNK2019: unresolved external symbol GetMessageW
referenced in function WinMain
cerdisp.obj : error LNK2019: unresolved external symbol
DispatchMessageW referenced in function WinMain
cerdisp.obj : error LNK2019: unresolved external symbol
TranslateMessage referenced in function WinMain
cerdisp.obj : error LNK2019: unresolved external symbol
IsDialogMessageW referenced in function WinMain
cerdisp.obj : error LNK2019: unresolved external symbol SendMessageW
referenced in function WinMain

.
. (Other Link errors)
.

\retail\CERDisp.exe C:\WINCE420\PUBLIC\JIC\RelDir\ACCELE~1\CERDisp.exe
        copylink /S:a /D:f /E:a /R:n
C:\WINCE420\public\COMMON\oak\target\ARMV4I\retail\CERDisp.map
C:\WINCE420\PUBLIC\JIC\RelDir\ACCELE~1\CERDisp.map
        copylink /S:a /D:f /E:a /R:n
C:\WINCE420\public\COMMON\oak\target\ARMV4I\retail\CERDisp.pdb
C:\WINCE420\PUBLIC\JIC\RelDir\ACCELE~1
        if exist C:\WINCE420\public\COMMON\oak\target\ARMV4I\retail\CERDisp.rel
copylink /S:a /D:f /E:a /R:n
C:\WINCE420\public\COMMON\oak\target\ARMV4I\retail\CERDisp.rel
C:\WINCE420\PUBLIC\JIC\RelDir\ACCELE~1\CERDisp.rel
Stop.
BUILD: Done

Any help would be greatly appreciated!!!

Tom

tomkuhn@cfl.rr.com (Thomas Kuhn) wrote in message news:<f59a08b6.0411080559.64e63b15@posting.google.com>...
> I am very new to platfom builder and know almost 0% about it (Our
> platform was developed by a third party company)...
>
> I have made some changes to Cerdisp so that I can use it on a headless
> device. Now the only thing I need to do is compile it. I originally
> tried to compile it using Embedded C++, but that lead nowhere. I am
> sure that Platform builder is capable of compiling this, I just need
> some direction of how to do it. Can I use the make file??
>
> Thanks,
>
> Tom



Relevant Pages

  • Python on Smartphone 2003?
    ... Trying to compile the PythonCE ... __imp_PyErr_Fetch referenced in function WinMain ... python.obj: error LNK2019: unresolved external symbol Py_fclose ...
    (comp.lang.python)
  • [Q] btdrt.lib linking error. in EVC
    ... I'm trying to write a very simple application in EVC 4.0 that uses ... I am including bt_api.h, and linking to btdrt.lib. ... compile the program I get the following linking errors; ... btdrt.lib: error LNK2019: unresolved external symbol ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Going From MFC to .NET
    ... Now the problem is that when I try to compile a debug or release vr. ... format; library ignored ... HardDriveTest.obj: error LNK2001: unresolved external symbol "unsigned ...
    (microsoft.public.vc.mfc)
  • cant compile php_imagick on M$ windows ?
    ... i tried to compile php_imagick on my win box with visual c++ 6.0 ... but i got these errors when linking: ... imagick.obj: error LNK2001: unresolved external symbol ...
    (comp.lang.php)
  • How do you link to the Bluetooth API?
    ... I'm trying to write a very simple application in EVC 4.0 that uses ... I am including bt_api.h, and linking to btdrt.lib. ... compile the program I get the following linking errors; ... btdrt.lib: error LNK2001: unresolved external symbol g_fBthApiCOM ...
    (microsoft.public.windowsce.app.development)