This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
I've just tried for the first time to use a cross compiler without too much success yet. I tried the following commands: cross-configure.sh CC=/usr/local/cross-tools/bin/i386-mingw32msvc-gcc CXX=/usr/local/cross-tools/bin/i386-mingw32msvc-c++ --prefix=/usr/local/mingw cross-make.sh CC=/usr/local/cross-tools/bin/i386-mingw32msvc-gcc CXX=/usr/local/cross-tools/bin/i386-mingw32msvc-c++ and got: if test "x`head -1 .libs/libHermes.exp`" = xEXPORTS; then cp .libs/libHermes.exp .libs/libHermes-1.dll-def; else echo EXPORTS > .libs/libHermes-1.dll-def; _lt_hint=1; cat .libs/libHermes.exp | while read symbol; do set dummy $symbol; case $# in 2) echo " $2 @ $_lt_hint ; " >> .libs/libHermes-1.dll-def;; *) echo " $2 @ $_lt_hint $3 ; " >> .libs/libHermes-1.dll-def;; esac; _lt_hint=`expr 1 + $_lt_hint`; done; fi /usr/local/cross-tools/bin/i386-mingw32msvc-gcc -Wl,--base-file,.libs/libHermes-1.dll-base -Wl,-e,_DllMainCRTStartup@12 -o .libs/libHermes-1.dll .libs/libHermes.la-40.o /usr/local/cross-tools/lib/gcc-lib/i386-mingw32msvc/2.95.3-6/../../../../i386-mingw32msvc/bin/ld: warning: cannot find entry symbol _DllMainCRTStartup@12; defaulting to 00401000 /usr/local/cross-tools/lib/gcc-lib/i386-mingw32msvc/2.95.3-6/../../../../i386-mingw32msvc/lib/libmingw32.a(main.o)(.text+0x8d):main.c: undefined reference to `WinMain@16' What do I need to add to the linking stage to get the symbol? Patching the Makefile or configure script isn't unusual for me anyway. In fact, I had to patch configure to get a non working check about endianess out of the way (ok, really hard to check for a cross compile *g*). Bye David ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |