Call C function - Access violation
TheDGuy via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Jan 3 05:01:28 PST 2016
>
> Works for me after adding the needed imports and removing the
> wrong include from the C file. Is this really the actual code
> you're running? Doesn't your C compiler reject that include?
> gcc does.
Okay, i think this C code should work (checked with cpp.sh):
#import <stdio.h>
char* write(char* text){
return text;
}
int main(void){
return 0;
}
but i still get the access violation.
More information about the Digitalmars-d-learn
mailing list