Development > Newbie Coding

(log) Actually got new build system to (partially) work on Windows 7

<< < (6/13) > >>

Mattn:
call make CC=gcc

i suppose you have config.mk already set up with CC set.

if you don't do make clean-uforadiant before, just call "make CC=g++ CXX=g++ uforadiant" please

Muton:
> export CC=gcc
> does not work
My fault, stupid winuser  ::)
cc=gcc != CC=gcc
added into /etc/profile


> i suppose you have config.mk already set up with CC set.
No, my mod is attached



make distclean ; ./configure --prefix= --enable-release --target-os=mingw32 && make Q= -j4 CC=g++ CXX=g++ uforadiant-brushexport && echo ok
google
using
http://downloads.sourceforge.net/mingw/gcc-c++-4.5.0-1-mingw32-bin.tar.lzma
http://downloads.sourceforge.net/mingw/gcc-core-4.5.0-1-mingw32-bin.tar.lzma
http://downloads.sourceforge.net/mingw/libgcc-4.5.0-1-mingw32-dll-1.tar.lzma
http://downloads.sourceforge.net/mingw/libssp-4.5.0-1-mingw32-dll-0.tar.lzma
http://downloads.sourceforge.net/mingw/libstdc++-4.5.0-1-mingw32-dll-6.tar.lzma
tried tdm -> same result

--- Code: ---===> LD [radiant/plugins/brushexport.dll]
g++ -DHAVE_CONFIG_H -ggdb -Winline -Wcast-qual -Wcast-align -Wmissing-declarations -Wpointer-arith -Wno-long-long -pedantic -Wextra
-Wno-sign-compare -Wno-unused-parameter -Wreturn-type -Wwrite-strings -DSHARED_EXT=\"dll\" -DGETTEXT_STATIC -DWINVER=0x501 -O2
-ffast-math -funroll-loops -D_FORTIFY_SOURCE=2 -DNDEBUG -falign-loops=2 -falign-jumps=2 -falign-functions=2 -fno-strict-aliasing   
release-mingw32-i386/uforadiant-brushexport/tools/radiant/plugins/brushexport/callbacks.cpp.o
release-mingw32-i386/uforadiant-brushexport/tools/radiant/plugins/brushexport/export.cpp.o
release-mingw32-i386/uforadiant-brushexport/tools/radiant/plugins/brushexport/interface.cpp.o
release-mingw32-i386/uforadiant-brushexport/tools/radiant/plugins/brushexport/plugin.cpp.o
release-mingw32-i386/uforadiant-brushexport/tools/radiant/plugins/brushexport/support.cpp.o   
-static-libgcc -static-libstdc++ -shared `pkg-config --libs gtk+-2.0 2> /dev/null || ( if [ -z "" ]; then echo "-lgtk+-2.0"; else echo
"-l"; fi )` `pkg-config --libs glib-2.0 2> /dev/null || ( if [ -z "" ]; then echo "-lglib-2.0"; else echo "-l"; fi )` -lstdc++ -lm -o radiant/plugins/brushexport.dll
d:/temp/tmp_co~2/ufoaiw~1/mingw/bin/../lib/gcc/mingw32/4.5.0\libstdc++.a(string-inst.o):(.text$_ZNSsC1ERKSs[std::basic_
string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)]+0x0): multiple definition of `std::basic_string<char,
std::char_traits<char>, std::allocator<char> >::basic_string(std::string const&)'
d:/temp/tmp_co~2/ufoaiw~1/mingw/bin/../lib/gcc/mingw32/4.5.0/libstdc++.dll.a(d001060.o):(.text+0x0): first defined here
d:/temp/tmp_co~2/ufoaiw~1/mingw/bin/../lib/gcc/mingw32/4.5.0\libstdc++.a(string-inst.o):(.text$_ZNSsC1ERKSsjj[std::basi
c_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)]+0x0): multiple definition of
`std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::string const&, unsigned int,
unsigned int)'
d:/temp/tmp_co~2/ufoaiw~1/mingw/bin/../lib/gcc/mingw32/4.5.0/libstdc++.dll.a(d001061.o):(.text+0x0): first defined here
d:/temp/tmp_co~2/ufoaiw~1/mingw/bin/../lib/gcc/mingw32/4.5.0\libstdc++.a(string-inst.o):(.text$_ZNSsD1Ev[std::basic_str
ing<char, std::char_traits<char>, std::allocator<char> >::~basic_string()]+0x0): multiple definition of
`std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
d:/temp/tmp_co~2/ufoaiw~1/mingw/bin/../lib/gcc/mingw32/4.5.0/libstdc++.dll.a(d001081.o):(.text+0x0): first defined here
d:/temp/tmp_co~2/ufoaiw~1/mingw/bin/../lib/gcc/mingw32/4.5.0\libstdc++.a(string-inst.o):(.text$_ZNSs6appendEPKcj[std::b
asic_string<char, std::char_traits<char>, std::allocator<char> >::append(char const*, unsigned int)]+0x0): multiple
definition of `std::string::append(char const*, unsigned int)'
d:/temp/tmp_co~2/ufoaiw~1/mingw/bin/../lib/gcc/mingw32/4.5.0/libstdc++.dll.a(d001011.o):(.text+0x0): first defined here
d:/temp/tmp_co~2/ufoaiw~1/mingw/bin/../lib/gcc/mingw32/4.5.0\libstdc++.a(string-inst.o):(.text$_ZNSs6assignEPKcj[std::b
asic_string<char, std::char_traits<char>, std::allocator<char> >::assign(char const*, unsigned int)]+0x0): multiple
definition of `std::string::assign(char const*, unsigned int)'
d:/temp/tmp_co~2/ufoaiw~1/mingw/bin/../lib/gcc/mingw32/4.5.0/libstdc++.dll.a(d001018.o):(.text+0x0): first defined here
d:/temp/tmp_co~2/ufoaiw~1/mingw/bin/../lib/gcc/mingw32/4.5.0\libstdc++.a(string-inst.o):(.text$_ZNKSs5rfindEPKcjj[std::
basic_string<char, std::char_traits<char>, std::allocator<char> >::rfind(char const*, unsigned int, unsigned int)
const]+0x0): multiple definition of `std::string::rfind(char const*, unsigned int, unsigned int) const'
d:/temp/tmp_co~2/ufoaiw~1/mingw/bin/../lib/gcc/mingw32/4.5.0/libstdc++.dll.a(d000240.o):(.text+0x0): first defined here
d:/temp/tmp_co~2/ufoaiw~1/mingw/bin/../lib/gcc/mingw32/4.5.0\libstdc++.a(string-inst.o):(.text$_ZNKSs12find_last_ofEPKc
jj[std::basic_string<char, std::char_traits<char>, std::allocator<char> >::find_last_of(char const*, unsigned int,
unsigned int) const]+0x0): multiple definition of `std::string::find_last_of(char const*, unsigned int, unsigned int)
const'
d:/temp/tmp_co~2/ufoaiw~1/mingw/bin/../lib/gcc/mingw32/4.5.0/libstdc++.dll.a(d000205.o):(.text+0x0): first defined here
d:/temp/tmp_co~2/ufoaiw~1/mingw/bin/../lib/gcc/mingw32/4.5.0\libstdc++.a(string-inst.o):(.text$_ZNSs4_Rep10_M_destroyER
KSaIcE[std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_M_destroy(std::allocator<char>
const&)]+0x0): multiple definition of `std::string::_Rep::_M_destroy(std::allocator<char> const&)'
d:/temp/tmp_co~2/ufoaiw~1/mingw/bin/../lib/gcc/mingw32/4.5.0/libstdc++.dll.a(d000988.o):(.text+0x0): first defined here
d:/temp/tmp_co~2/ufoaiw~1/mingw/bin/../lib/gcc/mingw32/4.5.0\libstdc++.a(string-inst.o):(.text$_ZNSs6assignERKSs[std::b
asic_string<char, std::char_traits<char>, std::allocator<char> >::assign(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)]+0x0): multiple definition of `std::string::assign(std::string
const&)'
d:/temp/tmp_co~2/ufoaiw~1/mingw/bin/../lib/gcc/mingw32/4.5.0/libstdc++.dll.a(d001019.o):(.text+0x0): first defined here
d:/temp/tmp_co~2/ufoaiw~1/mingw/bin/../lib/gcc/mingw32/4.5.0\libstdc++.a(string-inst.o):(.text$_ZNSsC1EPKcRKSaIcE[std::
basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char>
const&)]+0x0): multiple definition of `std::basic_string<char, std::char_traits<char>, std::allocator<char>
>::basic_string(char const*, std::allocator<char> const&)'
d:/temp/tmp_co~2/ufoaiw~1/mingw/bin/../lib/gcc/mingw32/4.5.0/libstdc++.dll.a(d001057.o):(.text+0x0): first defined here
d:/temp/tmp_co~2/ufoaiw~1/mingw/bin/../lib/gcc/mingw32/4.5.0\libstdc++.a(atomicity.o):(.text$_ZN9__gnu_cxx18__exchange_
and_addEPVii+0x0): multiple definition of `__gnu_cxx::__exchange_and_add(int volatile*, int)'
d:/temp/tmp_co~2/ufoaiw~1/mingw/bin/../lib/gcc/mingw32/4.5.0/libstdc++.dll.a(d000071.o):(.text+0x0): first defined here
d:/temp/tmp_co~2/ufoaiw~1/mingw/bin/../lib/gcc/mingw32/4.5.0\libstdc++.a(functexcept.o):(.text$_ZSt20__throw_length_err
orPKc+0x0): multiple definition of `std::__throw_length_error(char const*)'
d:/temp/tmp_co~2/ufoaiw~1/mingw/bin/../lib/gcc/mingw32/4.5.0/libstdc++.dll.a(d002667.o):(.text+0x0): first defined here
d:/temp/tmp_co~2/ufoaiw~1/mingw/bin/../lib/gcc/mingw32/4.5.0\libstdc++.a(functexcept.o):(.text$_ZSt20__throw_out_of_ran
gePKc+0x0): multiple definition of `std::__throw_out_of_range(char const*)'
d:/temp/tmp_co~2/ufoaiw~1/mingw/bin/../lib/gcc/mingw32/4.5.0/libstdc++.dll.a(d002668.o):(.text+0x0): first defined here
d:/temp/tmp_co~2/ufoaiw~1/mingw/bin/../lib/gcc/mingw32/4.5.0\libstdc++.a(eh_throw.o):(.text$__cxa_rethrow+0x0):
multiple definition of `__cxa_rethrow'
d:/temp/tmp_co~2/ufoaiw~1/mingw/bin/../lib/gcc/mingw32/4.5.0/libstdc++.dll.a(d003390.o):(.text+0x0): first defined here
d:/temp/tmp_co~2/ufoaiw~1/mingw/bin/../lib/gcc/mingw32/4.5.0\libstdc++.a(eh_personality.o):(.text$__gxx_personality_v0+
0x0): multiple definition of `__gxx_personality_v0'
d:/temp/tmp_co~2/ufoaiw~1/mingw/bin/../lib/gcc/mingw32/4.5.0/libstdc++.dll.a(d003403.o):(.text+0x0): first defined here
collect2: ld returned 1 exit status
make: *** [radiant/plugins/brushexport.dll] Error 1

--- End code ---

Mattn:
yes - now you have to remove the -lstdc++ from the build/modules/*.mk LDFLAGS

Muton:
yes thats it

now i stuck on W2k compatibility (ufo.exe)
I found something but the linker dont include wspiapi.h
Never had a problem with C::B ....

--- Code: ---release-mingw32-i386/ufo/common/net.c.o:net.c:(.data+0x4): undefined reference to `WspiapiLegacyGetAddrInfo@16'
release-mingw32-i386/ufo/common/net.c.o:net.c:(.data+0xc): undefined reference to `WspiapiLegacyGetNameInfo@28'
release-mingw32-i386/ufo/common/net.c.o:net.c:(.data+0x14): undefined reference to `WspiapiLegacyFreeAddrInfo@4'
release-mingw32-i386/ufo/common/net.c.o:net.c:(.rdata+0x834): undefined reference to `WspiapiLegacyGetAddrInfo@16'
release-mingw32-i386/ufo/common/net.c.o:net.c:(.rdata+0x83c): undefined reference to `WspiapiLegacyGetNameInfo@28'
release-mingw32-i386/ufo/common/net.c.o:net.c:(.rdata+0x844): undefined reference to `WspiapiLegacyFreeAddrInfo@4'

--- End code ---

Mattn:
please retry with latest master revision - i've added a per-target-linker-option. so uforadiant related targets are now linked with g++

are there any other changes you've made in order to get that far?

about w2k, i'll do some research, too (but i can't test here, no w2k)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version