Calypso: Direct and full interfacing to C++

Kelly via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Fri Jan 23 10:21:06 PST 2015


Hello Elie,

Just a little build script until cmake can be used properly:

#!/bin/bash
set -x

clang++ -std=c++11 -c showcase.cpp -o showcase.cpp.o
ar rcs libshowcase.a showcase.cpp.o
/bin/rm calypso_cache*
ldc2 -cpp-args -std=c++11 -Llibshowcase.a -L-lstdc++ showcase.d


I remove the the calypso_cache otherwise there will be an error
if a previous build failed and the C++ files get modified.

It looks like the 'undefined identifier size_t;' error is just
from testStruct. If I comment out all refs/uses to testStruct
then things compile and run fine. Good stuff.

Thanks,
Kelly

P.S. If I find a little time, I'll try to get up to speed on the
code base :)


On Friday, 23 January 2015 at 17:18:22 UTC, Elie Morisse wrote:
> Thanks for the feedback Kelly, you're probably the first person 
> to give it a serious try, sorry for the bumpy ride :)
>
> Since I was focused on getting Ogre working and neither rebuilt 
> druntime/phobos nor tested the showcase example against the 
> latest commits they might have broken something.
> Also the README forgets to say how libshowcase.a should be 
> built:
>
>   clang++ -std=c++11 -c showcase.cpp -o showcase.cpp.o
>   ar rcs libshowcase.a showcase.cpp.o
>
>   ldc2 -cpp-args -std=c++11 -Llibshowcase.a -L-lstdc++ 
> showcase.d
>
> Adding this now.
>
> I'm going to fix the rest this afternoon (finally some free 
> time), and also figure out why assistbuilder.cpp failed to 
> compile against the latest Clang 3.5.
>
> Also going to setup a testing script to ensure not everything 
> gets broken again by a commit.



More information about the Digitalmars-d-announce mailing list