Author Topic: clang 4.0 on windows 10 with tdm-gcc-64  (Read 25595 times)

Offline creatxr

  • Multiple posting newcomer
  • *
  • Posts: 28
clang 4.0 on windows 10 with tdm-gcc-64
« 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.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7683
    • My Best Post
Re: clang 4.0 on windows 10 with tdm-gcc-64
« Reply #1 on: March 16, 2017, 11:19:06 pm »
1. Read the CB Rules 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.
« Last Edit: March 16, 2017, 11:42:33 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org