Dynamically calling external libraries.
Tolga Cakiroglu
tcak at pcak.com
Fri Feb 28 10:03:28 PST 2014
On Friday, 28 February 2014 at 17:29:09 UTC, Setra wrote:
> I am using dmd_2.065.0-0_i386.deb on a 32 bit machine.
Hi Setra,
I am trying to make external libraries work as well, but having
problems continuously. Could you test that following function in
your library and call it from main programme. I am having
"Segmentation Fault" with it, and wondering if other people has
the same thing.
class A{
public this(){
writeln("Created");
}
}
extern(C) void foo(){
Object obj = new Object();
A objA = new A();
char[] c = new char[ 1024 ];
}
More information about the Digitalmars-d-learn
mailing list