D and C++ undefined reference when namespace

Steven Schveighoffer schveiguy at yahoo.com
Thu Mar 8 16:19:40 UTC 2018


On 3/8/18 10:27 AM, Markus wrote:
> Hi
> 
> I got the following c++ code [lib.cpp]:
> namespace ns_a
> {
>    class class_a {
>    };
>    void some_function(class_a*) {;}
> }
> 
> and the following d code [main.d]:
> extern (C++, namespace_a) {

did you mean ns_a?

-Steve


More information about the Digitalmars-d mailing list