Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => CodeCompletion redesign => Topic started by: creatxr on March 16, 2017, 09:49:19 pm

Title: clang 4.0 on windows 10 with tdm-gcc-64
Post by: creatxr on March 16, 2017, 09:49:19 pm
it's a very simple hello world console application.

clang++ main.cpp -std=c++14 -fno-ms-compatibility -c                     //it seems that the command works

but when i don't use -c options,

D:\WORK\aaa>clang++ main.cpp -std=c++14 -fno-ms-compatibility
clang++.exe: error: unable to execute command: program not executable
clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)

....................................... with -v option
 "link.exe" -out:a.exe -defaultlib:libcmt -nologo "C:\\Users\\CREATXR\\AppData\\Local\\Temp\\main-030761.o"
clang++.exe: error: unable to execute command: program not executable
clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)


what's i need to do? thanks.
Title: Re: clang 4.0 on windows 10 with tdm-gcc-64
Post by: stahta01 on March 16, 2017, 11:19:06 pm
1. Read the CB Rules http://forums.codeblocks.org/index.php/topic,9996.0.html (http://forums.codeblocks.org/index.php/topic,9996.0.html)

2. Install a supported Compiler and then try to use that supported compiler.

3. Post an CB Related question.

Tim S.