Compiling with winelib

antonio.fernandez.moreno at dmr-consulting.com antonio.fernandez.moreno at dmr-consulting.com
Tue May 24 04:20:00 CDT 2005


Hello,

Im trying to compile with winelib the notepad following the steps in the
user guide.
When I run the make command, the compiler gives me errors with the .rc
files.
Then I try to compile without these files and the compiler gives me the
next error:

bash-2.03$ make
gcc -c  -I.  -I/usr/local/include/wine/windows -g -O2 -fPIC    -D_REENTRANT
-o dialog.o dialog.c
LD_LIBRARY_PATH=":$LD_LIBRARY_PATH" /usr/local/bin/winebuild -fPIC -o
notepad2.exe.spec.c --exe notepad2.exe -mgui   License_En.o dialog.o
license.o main.o notepad.exe.dbg.o   -L/usr/local/lib -L/usr/local/lib/wine
-ladvapi32 -lcomdlg32 -lgdi32 -lkernel32 -lodbc32 -lole32 -loleaut32
-lshell32 -luser32 -lwinspool
gcc -c  -I.  -I/usr/local/include/wine/windows -g -O2 -fPIC    -D_REENTRANT
-o notepad2.exe.spec.o notepad2.exe.spec.c
gcc -shared -Wl,-Bsymbolic -o notepad2.exe.so License_En.o dialog.o
license.o main.o notepad.exe.dbg.o   notepad2.exe.spec.o        -lwine
-lwine_unicode -lwine_uuid -lsocket -lw -lm
dialog.o: In function `DIALOG_FilePrint':
/opt/cfw/wine/programs/notepad2/dialog.c:380: undefined reference to
`strcpy'
/opt/cfw/wine/programs/notepad2/dialog.c:381: undefined reference to
`strlen'
dialog.o: In function `DIALOG_SelectFont':
/opt/cfw/wine/programs/notepad2/dialog.c:675: undefined reference to
`memcpy'
/opt/cfw/wine/programs/notepad2/dialog.c:688: undefined reference to
`memcpy'
dialog.o: In function `DIALOG_Search':
/opt/cfw/wine/programs/notepad2/dialog.c:697: undefined reference to
`memset'
main.o: In function `NOTEPAD_InitData':
/opt/cfw/wine/programs/notepad2/main.c:100: undefined reference to `strlen'
/opt/cfw/wine/programs/notepad2/main.c:102: undefined reference to `strlen'
/opt/cfw/wine/programs/notepad2/main.c:104: undefined reference to `strlen'
/opt/cfw/wine/programs/notepad2/main.c:106: undefined reference to `strlen'
main.o: In function `HandleCommandLine':
/opt/cfw/wine/programs/notepad2/main.c:205: undefined reference to `printf'
/opt/cfw/wine/programs/notepad2/main.c:221: undefined reference to `strlen'
/opt/cfw/wine/programs/notepad2/main.c:231: undefined reference to `strlen'
/opt/cfw/wine/programs/notepad2/main.c:231: undefined reference to `strcmp'
/opt/cfw/wine/programs/notepad2/main.c:238: undefined reference to
`strncpy'
/opt/cfw/wine/programs/notepad2/main.c:239: undefined reference to `strcat'
main.o: In function `WinMain':
/opt/cfw/wine/programs/notepad2/main.c:276: undefined reference to `memset'
test -f notepad2 || install wineapploader notepad2
find: no es posible abrir notepad2: No existe tal archivo o directorio
find: no es posible seguir enlace simbólico /etc/wtmpx: No existe tal
archivo o directorio
install: wineapploader was not found anywhere!
make: *** [notepad2.exe.so] Error 2


This error appears because I have not the include <string.h> line. Wont
winelib must link with this file when I compile?
Im using this version of Wine: Wine-20030618.tar.gz    in a Solaris 8
(SPARC)
How can I know if winelib is correctly installed?

Thank you.

Antonio Fernández.







More information about the wine-devel mailing list