I'm relatively new to wxWidgets and its API and I'm in the process of developing a little application for Pocket PC 2003 (ARMV4) using VC8. I followed the steps provided in the installation package to build wxWidget and wxWinCE, but I'm getting the following linking error when building it:
1>wxmsw28d_core.lib(gdicmn.obj) : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'ARM'
Seems like I'm missing some sort of option while building wxWidget but I can't pinpoint what it is exactly.
Appreciate your help.
Linking error while building application for WinCE Topic is solved
-
- Earned a small fee
- Posts: 15
- Joined: Sun May 17, 2009 4:45 pm
-
- Earned a small fee
- Posts: 15
- Joined: Sun May 17, 2009 4:45 pm
From the error you are getting, it seems that you are linking to the wrong version of wxWidgets libraries. Try the following:
Under:
------
coredll.lib wxwince28d.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxexpatd.lib ole32.lib oleaut32.lib uuid.lib commctrl.lib winsock.lib wininet.lib
and under:
----------
"C:\Program Files\Windows CE Tools\wce420\POCKET PC 2003\Lib\Armv4";"C:\wxWidgets-2.8.10\lib\evc_armv4_lib"
Under:
------
remove everything and put :Configuration Properties->Linker->Input:Additional Dependencies
coredll.lib wxwince28d.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxexpatd.lib ole32.lib oleaut32.lib uuid.lib commctrl.lib winsock.lib wininet.lib
and under:
----------
remove everything and put:Configuration Properties->Linker->General:Additional Library Directories
"C:\Program Files\Windows CE Tools\wce420\POCKET PC 2003\Lib\Armv4";"C:\wxWidgets-2.8.10\lib\evc_armv4_lib"
-
- Earned a small fee
- Posts: 15
- Joined: Sun May 17, 2009 4:45 pm