Everything is now compiling, and we're at the linking stage... but it's missing some functions... functions that I'm not calling, but seem to be called by wine itself. Any ideas how to fix this?
Code: Select all
/opt/wine-devel/bin/../lib64/wine/libmsvcrt.a(msvcrt.hihglh.o): In function `fputs':
(.text+0x0): undefined reference to `__wine$func$msvcrt$914$fputs'
/opt/wine-devel/bin/../lib64/wine/libmsvcrt.a(msvcrt.PTNJnp.o): In function `putchar':
(.text+0x0): undefined reference to `__wine$func$msvcrt$1002$putchar'
collect2: error: ld returned 1 exit status
winegcc: gcc failed
Makefile:445: recipe for target 'xerase' failed
make: *** [xerase] Error 2
Code: Select all
proj_LDFLAGS = -mwindows \
-mno-cygwin
DLL_IMPORTS = comctl32 \
newdev \
netapi32 \
ws2_32 \
cfgmgr32 \
iphlpapi \
psapi \
dl \
pthread \
mysqlclient \
z \
ssl \
crypto \
atomic
CEXTRA = -mno-cygwin
CLEXTRA = -DRAWLINUX
CXXEXTRA =
RCEXTRA =
# Implicit rules
.SUFFIXES: .cpp .cxx .RC .WMC .C
DEFINCL = $(INCLUDE_PATH) $(DEFINES) $(WARNINGS) $(OPTIONS)
# LINUX-SPECIFIC-COMPILATION get at base linux
$(OUTDIR)/%.ol: %.c
$(CC) -c $(CFLAGS) $(CLEXTRA) $(DEFINCL) -o $@ $<
printf '\n\n'
$(OUTDIR)/%.o: %.c
$(CC) -c $(CFLAGS) $(CEXTRA) $(DEFINCL) -o $@ $<
printf '\n\n'
.C.o:
$(CC) -c $(CFLAGS) $(CEXTRA) $(DEFINCL) -o $@ $<
printf '\n\n'
$(OUTDIR)/.WMC.o: %.WMC
$(CC) -c $(CFLAGS) $(CEXTRA) $(DEFINCL) -o $@ $<
printf '\n\n'
.cpp.o:
$(CXX) -c $(CXXFLAGS) $(CXXEXTRA) $(DEFINCL) -o $@ $<
printf '\n\n'
.cxx.o:
$(CXX) -c $(CXXFLAGS) $(CXXEXTRA) $(DEFINCL) -o @ $<
printf '\n\n'
$(OUTDIR)/%.res: %.RC
$(RC) $(RCFLAGS) $(RCEXTRA) -fo$@ $<
printf '\n\n'
# Rules for cleaning
clean::
$(RM) $(OUTDIR)/*.*
### Target specific build rules
DEFLIB = $(LIBRARY_PATH) $(LIBRARIES) $(DLL_PATH) $(DLL_IMPORTS:%=-l%)
$(proj_MODULE): $(proj_OBJS)
$(CC) $(proj_LDFLAGS) -o $@ $(proj_OBJS) $(proj_LIBRARY_PATH) $(proj_DLL_PATH) $(DEFLIB) $(proj_DLLS:%=-l%) $(proj_LIBRARIES:%=-l%)
Ideas?