I downloaded STL's latest package of MinGW which packaged gcc 5.1. Tried to create a simple hello world console project, compiled fine. However, the linker complains about incompatible versions. Does this have something to do with clang not compatible with 5.1? Thanks.
•codelite version 8.0
•Is it a self compiled version of codelite No
•Your OS Windows 7 64 bit
•Compiler version
Clang 3.6 32bit
clang version 3.6.0 (tags/RELEASE_360/final)
Target: i686-pc-windows-gnu
Thread model: posix
and GCC 5.1, acquired from Nuwen.net, MinGW distribution version 13, 64 bit.
Build/Link output:
C:\Windows\system32\cmd.exe /C "C:/1/OpenSourceBinary/MinGW/bin/make.exe -j12 SHELL=cmd.exe -e -f Makefile"
"----------Building project:[ ClangExecutable - Debug ]----------"
make.exe[1]: Entering directory 'C:/Users/U414187/Prototype/CodeLiteCppDrive/ClangExecutable'
C:/1/OpenSourceBinary/LLVM/bin/clang++.exe -o ./Debug/ClangExecutable @"ClangExecutable.txt" -L.
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../libstdc++.a when searching for -lstdc++
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../..\libstdc++.a when searching for -lstdc++
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../libstdc++.a when searching for -lstdc++
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lstdc++
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/lib/libmingw32.a when searching for -lmingw32
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/lib\libmingw32.a when searching for -lmingw32
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/lib/libmingw32.a when searching for -lmingw32
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmingw32
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/libgcc.a when searching for -lgcc
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0\libgcc.a when searching for -lgcc
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/libgcc.a when searching for -lgcc
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lgcc
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/lib/libmoldname.a when searching for -lmoldname
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/lib\libmoldname.a when searching for -lmoldname
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/lib/libmoldname.a when searching for -lmoldname
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmoldname
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/lib/libmingwex.a when searching for -lmingwex
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/lib\libmingwex.a when searching for -lmingwex
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/lib/libmingwex.a when searching for -lmingwex
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmingwex
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/lib/libmsvcrt.a when searching for -lmsvcrt
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/lib\libmsvcrt.a when searching for -lmsvcrt
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/lib/libmsvcrt.a when searching for -lmsvcrt
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmsvcrt
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/lib/libadvapi32.a when searching for -ladvapi32
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/lib\libadvapi32.a when searching for -ladvapi32
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/lib/libadvapi32.a when searching for -ladvapi32
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -ladvapi32
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/lib/libshell32.a when searching for -lshell32
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/lib\libshell32.a when searching for -lshell32
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/lib/libshell32.a when searching for -lshell32
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lshell32
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/lib/libuser32.a when searching for -luser32
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/lib\libuser32.a when searching for -luser32
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/lib/libuser32.a when searching for -luser32
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -luser32
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/lib/libkernel32.a when searching for -lkernel32
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/lib\libkernel32.a when searching for -lkernel32
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/lib/libkernel32.a when searching for -lkernel32
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lkernel32
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/lib/libmingw32.a when searching for -lmingw32
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/lib\libmingw32.a when searching for -lmingw32
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/lib/libmingw32.a when searching for -lmingw32
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmingw32
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/libgcc.a when searching for -lgcc
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0\libgcc.a when searching for -lgcc
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/libgcc.a when searching for -lgcc
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lgcc
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/lib/libmoldname.a when searching for -lmoldname
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/lib\libmoldname.a when searching for -lmoldname
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/lib/libmoldname.a when searching for -lmoldname
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmoldname
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/lib/libmingwex.a when searching for -lmingwex
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/lib\libmingwex.a when searching for -lmingwex
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/lib/libmingwex.a when searching for -lmingwex
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmingwex
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/lib/libmsvcrt.a when searching for -lmsvcrt
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/lib\libmsvcrt.a when searching for -lmsvcrt
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/lib/libmsvcrt.a when searching for -lmsvcrt
c:/1/opensourcebinary/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmsvcrt
collect2.exe: error: ld returned 1 exit status
clang++.exe: error: linker (via gcc) command failed with exit code 1 (use -v to see invocation)
make.exe[1]: *** [Debug/ClangExecutable] Error 1
ClangExecutable.mk:78: recipe for target 'Debug/ClangExecutable' failed
make.exe[1]: Leaving directory 'C:/Users/U414187/Prototype/CodeLiteCppDrive/ClangExecutable'
make.exe: *** [All] Error 2
Makefile:4: recipe for target 'All' failed
1 errors, 0 warnings
Build with clang on Windows
-
- CodeLite Curious
- Posts: 2
- Joined: Mon Dec 23, 2013 6:29 am
- Genuine User: Yes
- IDE Question: c++
- Contact:
Build with clang on Windows
Last edited by candy.chiu.ad on Wed May 13, 2015 5:34 pm, edited 2 times in total.
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Build with clang on Windows
Please read the "HOW TO POST" thread (look at my signature)
Eran
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Curious
- Posts: 2
- Joined: Mon Dec 23, 2013 6:29 am
- Genuine User: Yes
- IDE Question: c++
- Contact:
Re: Build with clang on Windows
Updated original question.
I think I found the problem - the pre-built clang compiler targets 32 bit.
I think I found the problem - the pre-built clang compiler targets 32 bit.