Carbon WindowGroups example

Hello everyone!

With the latest SVN version of clang, I was able to compile and run the Carbon WindowGroups example, located in /Developer/Examples/Carbon/WindowGroups on Mac OS X systems.

I had to make some minimal changes to the source code; since we don't support initializers with arrays of structs yet. (I had to expand them to "manual" assignments).

A screenshot can be found at http://homepage.mac.com/andersca/WindowGroups.png

Anders

With the latest SVN version of clang, I was able to compile and run
the Carbon WindowGroups example, located in /Developer/Examples/Carbon/
WindowGroups on Mac OS X systems.

Great :slight_smile:

I `svn up`d both clang and llvm to reproduce this. Building llvm (`make clean; make -j2`) fails with

/Users/nico/src/llvm-svn/lib/AsmParser/Lexer.l: In function ‘int llvmAsmlex()’:
/Users/nico/src/llvm-svn/lib/AsmParser/Lexer.l:440: error: cannot convert ‘double’ to ‘llvm::APFloat*’ in assignment
/Users/nico/src/llvm-svn/lib/AsmParser/Lexer.l:441: error: cannot convert ‘double’ to ‘llvm::APFloat*’ in assignment

Nico

Delete Lexer.l and Lexer.cpp in lib/AsmParser and try again.

Delete Lexer.l and Lexer.cpp in lib/AsmParser and try again.

Thanks, now it builds fine.

Nico