www.digitalmars.com         C & C++   DMDScript  

D - linking c++ and D together

I have a question on how to link to D.
I have tried to make a small test example, which contain.
  main.c
  dclass.h
  dclass.d
I compile those files by
  dmd -c dclass.d
  g++ -L../../dmd/lib -lphobos2 -lstdc++ main.o dclass.o

I can not if information anywhere how to do this. Dose someone know how to do this? PS The test example is attached as a tgz
Feb 06 2008