[Mingw-w64-public] compile with clang error.what's wrong

2016-03-28 Thread zhangxinghai
I used msys2 and prebuilt package from https://sourceforge.net/projects/msys2/files/REPOS/MINGW/ My OS is windows 7 home basic. My step is 1.install msys2 2.c:/>msys2>update-core 3.pacman -S mingw-w64-i686-toolchain 4.pacman -S mingw-w64-i686-clang 5.pacman -S mingw-w64-i686-libc++ 6.pacman -S

Re: [Mingw-w64-public] how to use ld.gold as the linker?

2015-05-17 Thread zhangxinghai
Mm I have some another questions 1.As the ld.gold only supports elf format,why it is included in the binutils for build target windows?Does that mean I will never touch this tool under windows. 2.As the compile/link speed is so slow under windows,I hope to speed it up.Can I use the cross compi

[Mingw-w64-public] how to use ld.gold as the linker?

2015-05-14 Thread zhangxinghai
Hi,all My OS is xp sp3 I used the i686-4.9.2-release-posix-dwarf-rt_v4-rev2.7z build from site http://sourceforge.net/projects/mingw-w64 I write a helloworld.cpp program #include #include int main() { int i1=1,i2=2; int sum = i1 + i2; printf("%d\n",sum); return 0; } when I use g++ -o hello.exe h

[Mingw-w64-public] link msvcr100 problem under mingw

2013-06-19 Thread zhangxinghai
Hello I write a test helloworld program.I want to link it against msvcr100.My enviroment is os:xp sp3 mingw64 version:ruben build target win32 I compile the program as gcc -o hello.exe main.cpp -lmsvcr100. My problem is when I add -lmsvcr100 switch,I run the dependency walker on the hello.exe,I

[Mingw-w64-public] how to link msvcr100.dll

2013-06-17 Thread zhangxinghai
hi I write a hello world program in c #include int main() { printf("Hello world!\n"); return 0; } I try to link it with msvcr100.dll,I use the ruben win32 build from http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/ rubenvb/gcc-4.8-release/

[Mingw-w64-public] Is it the gcc or mingw64 that cause the failure of wx building?

2013-06-05 Thread zhangxinghai
HI,recently I tried several mingw and mingw-w64 version to build wx 2.9.4 http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/rubenvb /gcc-4.8-release/i686-w64-mingw32-gcc-4.8.0-win32_rubenvb.7z/download ..failed mingw64+gcc4.8 http://www.drang

[Mingw-w64-public] Is there a way to control the output file format of windres directly during building wx?

2013-06-04 Thread zhangxinghai
hello I find there is no way to control the output file format of windres directly when I build wx. If I use mingw32-make under cmd,I must manually modify makefile.gcc,add rcflags to every windres command. If I use msys,I also have no way to directly do that using configure, ../../configure -

[Mingw-w64-public] build wx with tdm-gcc successfully

2013-06-03 Thread zhangxinghai
hello I have just succeeded in building wx 2.9.4 with tdm-gcc-64 4.7.1-3,I'm very glad.Thanks for all help. I invoke the command mingw32-make -f makefile.gcc -j4 BUILD=release SHARED=1 MONOLITHIC=0 UNICODE=1 CXXFLAGS="-m32 -pipe -fno-keep-inline-dllexport -Os" LDFLAGS=-m32 CFLAGS=-m32 RCFLAG

[Mingw-w64-public] Do I select the right build type

2013-06-02 Thread zhangxinghai
Hi I reset my msys according to http://ingar.satgnu.net/devenv/mingw32/base.html My os version is windows xp 32bit 5.1.2600 I copy the tdm-gcc into mingw directory,and rename the tdm-gcc directory to mingw64. when I run ../../configure --host=i686-w64-mingw32 --enable-shared --disable-debug -

Re: [Mingw-w64-public] use tdm-gcc to compile wx2.9.4, get i386:x86-64 architecture of input file incompatible error

2013-05-31 Thread zhangxinghai
Hi,Ruben I think I must use --build and --host.If not,first I will get cannot guess build type error. The tdm-gcc is built with --build=x86_64-w64-mingw32,So I set build type to that. I want to build the wx dlls which are used under 32bit windows xp os. So I set host type to i686-w64-mingw32 I

[Mingw-w64-public] use tdm-gcc to compile wx2.9.4, get i386:x86-64 architecture of input file incompatible error

2013-05-30 Thread zhangxinghai
hello I try to build 32-bit wx2.9.4 with tdm-gcc. My os:windows xp (32bit) 5.1.2600 I download tdm-gcc from http://sourceforge.net/projects/tdm-gcc/files/TDM-GCC%20Installer/tdm64-gcc-4.7.1-3.exe/download I cd wx\build\msw directory and invoke command ../../configure --build=x86_64-w64-mingw32 --

Re: [Mingw-w64-public] build wxwidgets 2.9.4 with mingw64(rubenvb) return error

2013-05-28 Thread zhangxinghai
Hello,deneme.true What does your special makefile mean,I use makefile.gcc.Could you tell me what is your build enviroment mingw64 build,wxwidgets version,os version and how you invoke the build command. And Ruben,I'm very interested in the process you find out the problem.If possible,could you

[Mingw-w64-public] build wxwidgets 2.9.4 with mingw64(rubenvb) return error

2013-05-22 Thread zhangxinghai
Hi I download i686-w64-mingw32-gcc-4.8.0-win32_rubenvb.7z from http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/rubenvb/gcc-4.8-release/,unpack it to a directory. I also download wxwidgets2.9.4 from https://sourceforge.net/projects/wxwindows/files

[Mingw-w64-public] build wxwidgets 2.9.4 with mingw64(rubenvb) return error

2013-05-19 Thread zhangxinghai
Hi I download i686-w64-mingw32-gcc-4.8.0-win32_rubenvb.7z from http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/rubenvb/gcc-4.8-release/,unpack it to a directory. I also download wxwidgets2.9.4 from https://sourceforge.net/projects/wxwindows/files