hello
i want to compile my map in fedora this is my command
CXXFLAGS=-I/usr/i686-pc-mingw32/sys-root/mingw/include \
"LDFLAGS=-L/usr/i686-pc-mingw32/sys-root/mingw/lib -s -O" \
CXX=/usr/bin/i686-pc-mingw32-g++ \
./configure --host=i686-pc-mingw32 \
--with-z=/usr/i686-pc-mingw32/sys-root/
but when i execute jam i have some errors like this one
LinkPlugin cscursor.dll
./out/linux/optimize/libs/libcrystalspace-1.2.a(ptmalloc3.o):ptmalloc3.c:(.text+0x2a2): undefined reference to `_create_mspace_with_base'
./out/linux/optimize/libs/libcrystalspace-1.2.a(ptmalloc3.o):ptmalloc3.c:(.text+0x3e7): undefined reference to `_mspace_malloc'
./out/linux/optimize/libs/libcrystalspace-1.2.a(ptmalloc3.o):ptmalloc3.c:(.text+0x413): undefined reference to `_mspace_memalign'
./out/linux/optimize/libs/libcrystalspace-1.2.a(ptmalloc3.o):ptmalloc3.c:(.text+0x569): undefined reference to `_mspace_free'
./out/linux/optimize/libs/libcrystalspace-1.2.a(ptmalloc3.o):ptmalloc3.c:(.text+0x830): undefined reference to `_mspace_mallopt'
./out/linux/optimize/libs/libcrystalspace-1.2.a(ptmalloc3.o):ptmalloc3.c:(.text+0x8b8): undefined reference to `_create_mspace_with_base'
./out/linux/optimize/libs/libcrystalspace-1.2.a(ptmalloc3.o):ptmalloc3.c:(.text+0xc67): undefined reference to `_mspace_malloc'
./out/linux/optimize/libs/libcrystalspace-1.2.a(ptmalloc3.o):ptmalloc3.c:(.text+0xed9): undefined reference to `_mspace_free'
./out/linux/optimize/libs/libcrystalspace-1.2.a(ptmalloc3.o):ptmalloc3.c:(.text+0x1013): undefined reference to `_mspace_realloc'
./out/linux/optimize/libs/libcrystalspace-1.2.a(ptmalloc3.o):ptmalloc3.c:(.text+0x1196): undefined reference to `_mspace_memalign'
./out/linux/optimize/libs/libcrystalspace-1.2.a(ptmalloc3.o):ptmalloc3.c:(.text+0x12dc): undefined reference to `_mspace_memalign'
./out/linux/optimize/libs/libcrystalspace-1.2.a(ptmalloc3.o):ptmalloc3.c:(.text+0x1512): undefined reference to `_mspace_calloc'
./out/linux/optimize/libs/libcrystalspace-1.2.a(ptmalloc3.o):ptmalloc3.c:(.text+0x1645): undefined reference to `_mspace_independent_calloc'
./out/linux/optimize/libs/libcrystalspace-1.2.a(ptmalloc3.o):ptmalloc3.c:(.text+0x1785): undefined reference to `_mspace_malloc'
./out/linux/optimize/libs/libcrystalspace-1.2.a(ptmalloc3.o):ptmalloc3.c:(.text+0x17fe): undefined reference to `_mspace_malloc'
./out/linux/optimize/libs/libcrystalspace-1.2.a(ptmalloc3.o):ptmalloc3.c:(.text+0x181c): undefined reference to `_mspace_free'
./out/linux/optimize/libs/libcrystalspace-1.2.a(ptmalloc3.o):ptmalloc3.c:(.text+0x18c8): undefined reference to `_mspace_independent_comalloc'
./out/linux/optimize/libs/libcrystalspace-1.2.a(ptmalloc3.o):ptmalloc3.c:(.text+0x18ee): undefined reference to `_mspace_free'
./out/linux/optimize/libs/libcrystalspace-1.2.a(ptmalloc3.o):ptmalloc3.c:(.text+0x19bf): undefined reference to `_mspace_trim'
./out/linux/optimize/libs/libcrystalspace-1.2.a(ptmalloc3.o):ptmalloc3.c:(.text+0x1a5f): undefined reference to `_mspace_mallopt'
./out/linux/optimize/libs/libcrystalspace-1.2.a(ptmalloc3.o):ptmalloc3.c:(.text+0x1acc): undefined reference to `_mspace_malloc_stats'
collect2: ld returned 1 exit status
i try this solution
Note: If jam reports missing symbols like _mspace_malloc, put '#define MSPACES 1' in the #ifdef-lines in libs/csutil/dlmalloc.c.
but i am not sure of the setting up correctly
gedit libs/csutil/dlmalloc.c
line 526
/* The maximum possible size_t value has all bits set */
#define MAX_SIZE_T (~(size_t)0)
#ifndef ONLY_MSPACES
#define ONLY_MSPACES 0
#endif /* ONLY_MSPACES */
#ifndef MSPACES
#if ONLY_MSPACES
#define MSPACES 1
#else /* ONLY_MSPACES */
#define MSPACES 0
#endif /* ONLY_MSPACES */
#endif /* MSPACES */
#ifndef MALLOC_ALIGNMENT
#define MALLOC_ALIGNMENT ((size_t)8U)
#endif /* MALLOC_ALIGNMENT */