执行模式... C ++代码阻止IDE编译器设置CLang for Linux

时间:2013-11-24 23:38:47

标签: c++ linux compiler-construction ide codeblocks

有人可以共享他们的编译器设置吗... CLANG ...来自CodeBlocks的工具链?


回顾编辑
 ...我可以更改特定硬盘分区上的执行模式(chmod)吗? 短期解决方案......从主目录执行

由于我只有下面的评论,我不确定我能否给出答案 我将在下面留下我的误解。

我在Linux Mint上

部分成功...... Clang似乎检查并编译代码。

Cleaned "test200 - Debug"

-------------- Build: Debug in test200 (compiler: Clang Hand Labor)---------------

clang++ -Wall -fexceptions  -g     -c "/media/transcend/Seagate Replica/cpp2011/test200/test200/main.cpp" -o obj/Debug/main.o
clang++  -o bin/Debug/test200 obj/Debug/main.o    
Output size is 27.32 KB
Process terminated with status 0 (0 minutes, 0 seconds)
0 errors, 0 warnings (0 minutes, 0 seconds)

控制台输出(用手输入......我无法从CodeBlocks的微控制台复制)
这是!!!错误!! ......只是cout<< “你好”

elided
sh: 1: /path/st200 permission denied

returned 126

CodeBlocks IDE中的编译器设置 C..clang
C ++ clang ++
Linker clang ++
静态链接器... ar
资源编译器...没有什么 制作节目...........制作

我使用Linux的软件管理器进行CodeBlocks IDE 没有CLANG选项......这个事实让我觉得我有一些旧的东西 我复制了GCC设置并键入了clang和clang ++
感谢

构建日志Elided

clang++ -Wall -fexceptions  -g  -I/usr/lib/llvm-3.2/include  elided -Wcast-qual    -c "/media/transcend2020/Seagate Replica/cpp2011/test200/test200/main.cpp" -o obj/Debug/main.o

clang++  -o bin/Debug/test200 obj/Debug/main.o   -lLLVMAsmParser elided  -L/usr/lib/llvm-3.2/lib  -lpthread -lffi -ldl -lm  
Output size is 51.20 KB

0 个答案:

没有答案