News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

clang 4.0 on windows 10 with tdm-gcc-64

Started by creatxr, March 16, 2017, 09:49:19 PM

Previous topic - Next topic

creatxr

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.

stahta01

#1
1. Read the CB Rules http://forums.next.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.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]