04 нояб. 2013 г., в 16:23, Zbigniew Diaczyszyn <[email protected]> написал(а):
> I have tried to cross-compile a 64bit dll for Windows on a 64bit Linux > host: Linux darkstar 3.2.29 x86_64 > > The mingw64 toolchain has been built from scratch with the MingGW-w64 > Build Script 3.5.0 found on > http://zeranoe.com/scripts/mingw_w64_build/mingw-w64-build-3.5.0 based > on MinGW-w64 3.0.0 and GCC 4.8.1. > > My bash script is: > > GCCPATH=/home/dia/mingw64/mingw-w64-i686/bin > PREFIX=$GCCPATH/i686-w64-mingw32 > export CC=$PREFIX-gcc > export CXX=$PREFIX-g++ > export CPP=$PREFIX-cpp > export RANLIB=$PREFIX-ranlib > export LD=$PREFIX-ld > > SRCPATH=/home/dia/Projekte/gorilla/twofish/opt-C-code > > $CC -Wall -shared -DUSE_TCL_STUBS \ > -I ~/Programme/Active-Tcl-8.5/include/ -o twofish.dll > $SRCPATH/twofish2tcl.c \ > -L ~/Programme/Active-Tcl-8.5/lib/ -ltclstub8.5 > > But the linker cannot link the added library > ~/Programme/Active-Tcl-8.5/lib/libtclstub8.5.a: > > /tmp/ccQnvpWs.o:twofish2tcl.c:(.text+0x2d31): undefined reference to > `tclStubsPtr' > /tmp/ccQnvpWs.o:twofish2tcl.c:(.text+0x2d65): undefined reference to > `tclStubsPtr' > /tmp/ccQnvpWs.o:twofish2tcl.c:(.text+0x2de6): undefined reference to > `tclStubsPtr' > /tmp/ccQnvpWs.o:twofish2tcl.c:(.text+0x2e4d): undefined reference to > `tclStubsPtr' > /tmp/ccQnvpWs.o:twofish2tcl.c:(.text+0x2e61): undefined reference to > `tclStubsPtr' > /tmp/ccQnvpWs.o:twofish2tcl.c:(.text+0x2eb6): more undefined references > to `tclStubsPtr' follow > /tmp/ccQnvpWs.o:twofish2tcl.c:(.text+0x3518): undefined reference to > `Tcl_InitStubs' > /tmp/ccQnvpWs.o:twofish2tcl.c:(.text+0x3528): undefined reference to > `tclStubsPtr' > /tmp/ccQnvpWs.o:twofish2tcl.c:(.text+0x355b): undefined reference to > `tclStubsPtr' > /home/dia/mingw64/mingw-w64-i686/lib/gcc/i686-w64-mingw32/4.8.1/../../../../i686-w64-mingw32/bin/ld: > /tmp/ccQnvpWs.o: bad reloc address 0x420 in section `.data' > collect2: error: ld returned 1 exit status > > Any hint is appreciated > Show how you build tcl/tk > -- > Zbigniew Diaczyszyn > Web: http://zdia.de > PGP Key ID: 0x52052C79 > > ------------------------------------------------------------------------------ > Android is increasing in popularity, but the open development platform that > developers love is also attractive to malware creators. Download this white > paper to learn more about secure code signing practices that can help keep > Android apps secure. > http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk > _______________________________________________ > Mingw-w64-public mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mingw-w64-public ------------------------------------------------------------------------------ Android is increasing in popularity, but the open development platform that developers love is also attractive to malware creators. Download this white paper to learn more about secure code signing practices that can help keep Android apps secure. http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
