extern(C++, ns)

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Sun Jan 3 08:40:15 PST 2016


On 2016-01-03 16:59, Walter Bright wrote:

> It is not at all impossible, any more than it is impossible to declare C
> names in multiple files. But you do have to follow C/C++'s "One
> Definition Rule" or you'll get link errors.

Aha, I thought that was the problems that Manu had, my bad. At least it 
works for the simple cases.

> I agree it is not very practical to put it all in one file. But it isn't
> any more necessary than putting all the C declarations in one file, for
> the same reason.

My fault, see above.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list