Hi all.
I try to compile the notepad from ReactOS.
My problem is that undefined reference errors who show up, but I included all 
needed files.
I searched the include files for the needed definitions and included all 
headers i found.
There are 2 or three functions who are not implented in cegcc but they are not 
really important.
My problem is the ChooseFontW reference error. I included the commdlg.h but the 
error still appears.

/opt/mingw32ce/bin/arm-wince-mingw32ce-gcc.exe -D_WIN32_IE=0x0400 
-D_WIN32_WCE=0x0400  -o notepad.exe dialog.c settings.c text.c main.c
/cygdrive/c/Users/lis/AppData/Local/Temp/cc7MQyHC.o:dialog.c:(.text+0x13f4): 
undefined reference to `GetMenu'
/cygdrive/c/Users/lis/AppData/Local/Temp/cc7MQyHC.o:dialog.c:(.text+0x1638): 
undefined reference to `ChooseFontW'
/cygdrive/c/Users/lis/AppData/Local/Temp/cc7MQyHC.o:dialog.c:(.text+0x180c): 
undefined reference to `FindTextW'
/cygdrive/c/Users/lis/AppData/Local/Temp/cc7MQyHC.o:dialog.c:(.text+0x1868): 
undefined reference to `ReplaceTextW'
/cygdrive/c/Users/lis/AppData/Local/Temp/cc7MQyHC.o:dialog.c:(.text+0x1958): 
undefined reference to `_wtoi'
/cygdrive/c/Users/lis/AppData/Local/Temp/cc7MQyHC.o:dialog.c:(.text+0x1d94): 
undefined reference to `CreateStatusWindowW'
/cygdrive/c/Users/lis/AppData/Local/Temp/cc7MQyHC.o:dialog.c:(.text+0x1e04): 
undefined reference to `GetMenu'
/cygdrive/c/Users/lis/AppData/Local/Temp/cc7MQyHC.o:dialog.c:(.text+0x1f64): 
undefined reference to `WinHelpW'
/cygdrive/c/Users/lis/AppData/Local/Temp/cc7MQyHC.o:dialog.c:(.text+0x1fa8): 
undefined reference to `WinHelpW'
/cygdrive/c/Users/lis/AppData/Local/Temp/cc7MQyHC.o:dialog.c:(.text+0x213c): 
undefined reference to `ShellAboutW'
/cygdrive/c/Users/lis/AppData/Local/Temp/ccj5RJBJ.o:settings.c:(.text+0x44): 
undefined reference to `MulDiv'
/cygdrive/c/Users/lis/AppData/Local/Temp/ccj5RJBJ.o:settings.c:(.text+0xb0): 
undefined reference to `MulDiv'
/cygdrive/c/Users/lis/AppData/Local/Temp/ccj5RJBJ.o:settings.c:(.text+0x3fc): 
undefined reference to `RegOpenKeyW'
/cygdrive/c/Users/lis/AppData/Local/Temp/ccoG4X8A.o:main.c:(.text+0x3c): 
undefined reference to `GetFileTitleW'
/cygdrive/c/Users/lis/AppData/Local/Temp/ccoG4X8A.o:main.c:(.text+0xb48): 
undefined reference to `GetMenu'
/cygdrive/c/Users/lis/AppData/Local/Temp/ccoG4X8A.o:main.c:(.text+0xba0): 
undefined reference to `GetMenu'
/cygdrive/c/Users/lis/AppData/Local/Temp/ccoG4X8A.o:main.c:(.text+0x11bc): 
undefined reference to `DragQueryFileW'
/cygdrive/c/Users/lis/AppData/Local/Temp/ccoG4X8A.o:main.c:(.text+0x11c4): 
undefined reference to `DragFinish'
/cygdrive/c/Users/lis/AppData/Local/Temp/ccoG4X8A.o:main.c:(.text+0x1818): 
undefined reference to `RegisterClassExW'
/cygdrive/c/Users/lis/AppData/Local/Temp/ccoG4X8A.o:main.c:(.text+0x18f8): 
undefined reference to `DragAcceptFiles'
collect2: ld returned 1 exit status
make: *** [compile-arm] Error 1

fist lines of dialog.c:
#include <assert.h>
#include <stdio.h>
#include <windows.h>
#include <commdlg.h>
#include <commctrl.h>
#include <tchar.h>
#include <richedit.h>
#include <malloc.h>

#include "dialog.h"
#include "main.h"

Thanks.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to