Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Clang integration?

<< < (5/9) > >>

reckless:
uploading the package to my google code site should be downloadable from there.

edit: is up now.

reckless:
preliminary testing suggests that it might work with codeblocks allthough the linking stage fails. as far as i could read into it its because the parsing is done differently (linker cant determine the type of the object files).

it works fine with msys so far.

feel free to use my provided package if you intend on adding support for llvm in codeblocks.

meanwhile ill look at what changes will be nessesary to get dragonegg working with win32 mingw.

ollydbg:
@reckless
I just use this package
ftp://90.184.233.166/LLVM-shared.7z

and configure in codeblocks like below:


then, I just using the wizard to create a console hello world project.

but it failed on compiling...

--- Code: ---
-------------- Build: Debug in buildllvmgcctest ---------------

[ 50.0%] llvm-g++.exe -Wall -fexceptions  -g     -c F:\cb\testCode\buildllvmgcctest\main.cpp -o obj\Debug\main.o
[100.0%] llvm-g++.exe  -o bin\Debug\buildllvmgcctest.exe obj\Debug\main.o   
F:\cb\testCode\buildllvmgcctest\main.cpp:1:20: error: iostream: No such file or directory
F:\cb\testCode\buildllvmgcctest\main.cpp: In function 'int main()':
F:\cb\testCode\buildllvmgcctest\main.cpp:7: error: 'cout' was not declared in this scope
F:\cb\testCode\buildllvmgcctest\main.cpp:7: error: 'endl' was not declared in this scope
Process terminated with status 1 (0 minutes, 0 seconds)
3 errors, 0 warnings (0 minutes, 0 seconds)

--- End code ---

Do I need to manually add the include search patch??

thanks.

ollydbg:
by the way, you just hard-coded the path??

see the log below when I run the command:

--- Quote ---F:\cb\llvm_gcc\LLVM\bin>llvm-gcc -v -x c++ nul -fsyntax-only
Using built-in specs.
Target: i386-mingw32
Configured with: ../llvm-gcc-4.2/configure --prefix=/llvm --host=i386-mingw32 --
build=i386-mingw32 --enable-languages=c,c++,fortran --disable-nls --disable-mult
ilib --disable-win32-registry --disable-werror --disable-bootstrap --disable-sym
vers --program-prefix=llvm- --enable-llvm=/home/ralph/llvm-objects --enable-full
y-dynamic-string --with-gxx-include-dir=/llvm/include/c++/4.2.1 --with-sysroot=/
usr
Thread model: win32
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build)
 f:/cb/llvm_gcc/llvm/bin/../libexec/gcc/i386-mingw32/4.2.1/cc1plus.exe -quiet -v
 -iprefix f:\cb\llvm_gcc\llvm\bin\../lib/gcc/i386-mingw32/4.2.1/ nul -quiet -dum
pbase nul -mtune=i386 -auxbase nul -version -fsyntax-only -o nul
ignoring nonexistent directory "f:/cb/llvm_gcc/llvm/bin/../lib/gcc/i386-mingw32/
4.2.1/../../../../i386-mingw32/include"
ignoring nonexistent directory "c:/codeblocks/llvm/include/c++/4.2.1"
ignoring nonexistent directory "c:/codeblocks/llvm/include/c++/4.2.1/i386-mingw3
2"
ignoring nonexistent directory "c:/codeblocks/llvm/include/c++/4.2.1/backward"
ignoring nonexistent directory "C:/CodeBlocksc:/codeblocks/llvm/lib/gcc/i386-min
gw32/4.2.1/../../../../include"
ignoring nonexistent directory "c:/codeblocks/llvm/lib/gcc/i386-mingw32/4.2.1/in
clude"
ignoring nonexistent directory "c:/codeblocks/llvm/i386-mingw32/include"
ignoring nonexistent directory "C:/CodeBlocks/mingw/include"
#include "..." search starts here:
#include <...> search starts here:
 f:/cb/llvm_gcc/llvm/bin/../lib/gcc/i386-mingw32/4.2.1/include
End of search list.
cc1plus.exe: warning: nul.gch: too short to be a PCH file
GNU C++ version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build) (i386-mingw3
2)
        compiled by GNU C version 4.2.1 (Based on Apple Inc. build 5658) (LLVM b
uild).
GGC heuristics: --param ggc-min-expand=150 --param ggc-min-heapsize=131072
Compiler executable checksum: 5faebdeec4705890ed271b3e78d3baee
nul:1: warning: 'nul.gcda' is not a gcov data file

F:\cb\llvm_gcc\LLVM\bin>

--- End quote ---

it seems all the path was something like:  "c:/codeblocks/llvm"....., but that does not work on my system, can this be relocatable?

reckless:
ah aye i suspected something like that and no not atm else it wont build as pr the instructions on the llvm site :(

ill see if i can patch something up.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version