User forums > Using Code::Blocks

freeBSD parametres of llvm/clang

(1/2) > >>

philo_neo:
Hi,
i've installed C::B under freeBSD 10.3, and i use LLVM/clang for the compilator.
i try to parametred the IDE with LLVM/Clang devel ports but i have issue.
after research on internet i intalled LLVM/Clang 3.6, it's better then devel but is not run yet.
i want to know whitch additionnaly parametres toolschain for setting C::B.
1 / user directory == /usr/local/llvm36/bin
2/ setting
-C compiler == clang
-C++ compiler == clang++
-linker for dynamics libs == llvm-link -use-mbpi
-linker for statics libs ==llvm-ar
-resourcecompiler == clang++
-Make program == make

issue >> error expected top-level entity

some one can help me

BlueHazzard:
we need the full build log:
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(general)#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

philo_neo:
hi,
i anderstand that you want !
version of C::B is 16.01
the test program is "hello world"... new projet .....
C::B not crashed ! so not log file !
build log :

--- Code: ---

-------------- Build: Debug in essai009 (compiler: LLVM Clang Compiler)---------------

llvm-link -use-mbpi  -o bin/Debug/essai009 obj/Debug/main.o   
llvm-link: obj/Debug/main.o:1:1: error: expected top-level entity
ELF         `)444444((22//    !!!!""""####$$$$%%%%&&&&''''(((())))))))UUUnk: error loading file 'obj/Debug/main.o'
Process terminated with status 1 (0 minute(s), 0 second(s))
1 error(s), 0 warning(s) (0 minute(s), 0 second(s))
 

 
--- End code ---

stahta01:
Change "linker for dynamics libs" back to the default of

--- Code: ---clang++

--- End code ---
instead of this which causes the error you got.

--- Code: ---llvm-link -use-mbpi

--- End code ---

Edit: My full build log

--- Code: ----------------- Build: Release in clang (compiler: LLVM Clang Compiler)---------------

clang++ -Weverything -fexceptions -O2 -Wno-potentially-evaluated-expression  -c /home/stahta01/devel/open_source_code/no_version_control/CB_wizard_testing/clang/main.cpp -o obj/Release/main.o
clang++  -o bin/Release/clang obj/Release/main.o  -s 
Output file is bin/Release/clang with size 6.24 KB

--- End code ---

Tim S.

philo_neo:
hi,
i do your recommandations, there are no error , but xterm for output doesn't display.


--- Code: ----------------- Run: Debug in essai009 (compiler: LLVM Clang Compiler)---------------

Checking for existence: /usr/home/phipo/langage_c++/essai009/bin/Debug/essai009
Executing: xterm -T essai009 -e /usr/home/phipo/langage_c++/essai009/bin/Debug/essai009  (in /usr/home/phipo/langage_c++/essai009/.)
Process terminated with status 0 (0 minute(s), 0 second(s))
 
--- End code ---

also i don't have a linker setting : like >> file.a, file.so, file.lib,etc....

it's miss the parametre for open xterm
i have :
shell to run commands in ==/bin/sh -c
terminal to lauch console program==xterm -T $TITLE -e

Navigation

[0] Message Index

[#] Next page

Go to full version