Trouble linking

Questions about Wine on Linux
Locked
blake9999
Newbie
Newbie
Posts: 1
Joined: Tue Dec 24, 2024 9:32 pm

Trouble linking

Post by blake9999 »

Hello.

I am trying to build a 64-bit Windows program on Fedora Linux machine. It compiles just fine but I am getting a bunch of link errors. I'd really appreciate it if someone could help me.

The facts:

Fedora Linux 41
Wine version 9.15
64 bit program


Output:

Code: Select all

$ make
winegcc -m64 -I../../include -I../../../Dynace/include -I/usr/include/wine/windows -I/usr/include/wine/msvcrt -fPIC -D_WINDOWS -D_WIN32 -D__WINE__ -fno-builtin -g -c main.c
winegcc -g -o main main.o  main.res ../../lib/wds.a ../../../Dynace/lib/dynace.a -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lcomctl32 -ladvapi32 -lshell32 -lmpr -lmsvcrt -lucrtbase -lmsimg32 -lc -lm 
/usr/bin/ld: /usr/bin/../lib64/wine/x86_64-unix/libmsvcrt.a(msvcrt-000003e3.o): warning: relocation against `__wine$func$msvcrt$1102$sprintf' in read-only section `.text'
/usr/bin/ld: /usr/bin/../lib64/wine/x86_64-unix/libmsvcrt.a(msvcrt-00000340.o): in function `abs':
(.text+0x0): undefined reference to `__wine$func$msvcrt$937$abs'
/usr/bin/ld: /usr/bin/../lib64/wine/x86_64-unix/libmsvcrt.a(msvcrt-0000034c.o): in function `atoi':
(.text+0x0): undefined reference to `__wine$func$msvcrt$950$atoi'
/usr/bin/ld: /usr/bin/../lib64/wine/x86_64-unix/libmsvcrt.a(msvcrt-0000036b.o): in function `floor':
(.text+0x0): undefined reference to `__wine$func$msvcrt$981$floor'
/usr/bin/ld: /usr/bin/../lib64/wine/x86_64-unix/libmsvcrt.a(msvcrt-00000393.o): in function `isdigit':
(.text+0x0): undefined reference to `__wine$func$msvcrt$1021$isdigit'
/usr/bin/ld: /usr/bin/../lib64/wine/x86_64-unix/libmsvcrt.a(msvcrt-00000399.o): in function `isspace':
(.text+0x0): undefined reference to `__wine$func$msvcrt$1027$isspace'
/usr/bin/ld: /usr/bin/../lib64/wine/x86_64-unix/libmsvcrt.a(msvcrt-000003b2.o): in function `longjmp':
(.text+0x0): undefined reference to `__wine$func$msvcrt$1052$longjmp'
/usr/bin/ld: /usr/bin/../lib64/wine/x86_64-unix/libmsvcrt.a(msvcrt-000003bd.o): in function `memcmp':
(.text+0x0): undefined reference to `__wine$func$msvcrt$1063$memcmp'
/usr/bin/ld: /usr/bin/../lib64/wine/x86_64-unix/libmsvcrt.a(msvcrt-000003be.o): in function `memcpy':
(.text+0x0): undefined reference to `__wine$func$msvcrt$1064$memcpy'
/usr/bin/ld: /usr/bin/../lib64/wine/x86_64-unix/libmsvcrt.a(msvcrt-000003c0.o): in function `memmove':
(.text+0x0): undefined reference to `__wine$func$msvcrt$1066$memmove'
/usr/bin/ld: /usr/bin/../lib64/wine/x86_64-unix/libmsvcrt.a(msvcrt-000003c2.o): in function `memset':
(.text+0x0): undefined reference to `__wine$func$msvcrt$1068$memset'
/usr/bin/ld: /usr/bin/../lib64/wine/x86_64-unix/libmsvcrt.a(msvcrt-000003c7.o): in function `pow':
(.text+0x0): undefined reference to `__wine$func$msvcrt$1073$pow'
/usr/bin/ld: /usr/bin/../lib64/wine/x86_64-unix/libmsvcrt.a(msvcrt-000003e3.o): in function `sprintf':
(.text+0x0): undefined reference to `__wine$func$msvcrt$1102$sprintf'
/usr/bin/ld: /usr/bin/../lib64/wine/x86_64-unix/libmsvcrt.a(msvcrt-000003ea.o): in function `strcat':
(.text+0x0): undefined reference to `__wine$func$msvcrt$1109$strcat'
/usr/bin/ld: /usr/bin/../lib64/wine/x86_64-unix/libmsvcrt.a(msvcrt-000003ec.o): in function `strchr':
(.text+0x0): undefined reference to `__wine$func$msvcrt$1111$strchr'
/usr/bin/ld: /usr/bin/../lib64/wine/x86_64-unix/libmsvcrt.a(msvcrt-000003ed.o): in function `strcmp':
(.text+0x0): undefined reference to `__wine$func$msvcrt$1112$strcmp'
/usr/bin/ld: /usr/bin/../lib64/wine/x86_64-unix/libmsvcrt.a(msvcrt-000003ef.o): in function `strcpy':
(.text+0x0): undefined reference to `__wine$func$msvcrt$1114$strcpy'
/usr/bin/ld: /usr/bin/../lib64/wine/x86_64-unix/libmsvcrt.a(msvcrt-000003f5.o): in function `strlen':
(.text+0x0): undefined reference to `__wine$func$msvcrt$1120$strlen'
/usr/bin/ld: /usr/bin/../lib64/wine/x86_64-unix/libmsvcrt.a(msvcrt-000003f8.o): in function `strncmp':
(.text+0x0): undefined reference to `__wine$func$msvcrt$1123$strncmp'
/usr/bin/ld: /usr/bin/../lib64/wine/x86_64-unix/libmsvcrt.a(msvcrt-000003f9.o): in function `strncpy':
(.text+0x0): undefined reference to `__wine$func$msvcrt$1124$strncpy'
/usr/bin/ld: /usr/bin/../lib64/wine/x86_64-unix/libmsvcrt.a(msvcrt-000003fd.o): in function `strrchr':
(.text+0x0): undefined reference to `__wine$func$msvcrt$1128$strrchr'
/usr/bin/ld: /usr/bin/../lib64/wine/x86_64-unix/libmsvcrt.a(msvcrt-000003ff.o): in function `strstr':
(.text+0x0): undefined reference to `__wine$func$msvcrt$1130$strstr'
/usr/bin/ld: /usr/bin/../lib64/wine/x86_64-unix/libmsvcrt.a(msvcrt-00000403.o): in function `strtol':
(.text+0x0): undefined reference to `__wine$func$msvcrt$1134$strtol'
/usr/bin/ld: /usr/bin/../lib64/wine/x86_64-unix/libmsvcrt.a(msvcrt-00000415.o): in function `toupper':
(.text+0x0): undefined reference to `__wine$func$msvcrt$1152$toupper'
/usr/bin/ld: /usr/bin/../lib64/wine/x86_64-unix/libmsvcrt.a(msvcrt-00000421.o): in function `vsprintf':
(.text+0x0): undefined reference to `__wine$func$msvcrt$1164$vsprintf'
/usr/bin/ld: /usr/bin/../lib64/wine/x86_64-unix/libmsvcrt.a(msvcrt-00000443.o): in function `wcstombs':
(.text+0x0): undefined reference to `__wine$func$msvcrt$1198$wcstombs'
/usr/bin/ld: warning: creating DT_TEXTREL in a shared object
collect2: error: ld returned 1 exit status
winegcc: /usr/bin/gcc failed
make: *** [makefile:51: main] Error 2
$ 
Thank you!
Locked