Linking g++ compiled object files

Rubikoid via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Nov 23 11:49:35 PST 2016


For example, i have test.cpp:
#include <stdio.h>
void test()
{
    printf("test\n");
}
And test.d:
import std.stdio;
extern (C++) void test();
void main()
{
     test();
     readln();
}
How i should compile test.cpp using g++ to link it normally?


More information about the Digitalmars-d-learn mailing list