Hi all, it seems I'm not alone... here's what I have:

Xcode:

Header File:

#import <Foundation/Foundation.h>
@interface Mine : NSObject {
}
-(void)doNothing;
@end


Implementation:

#import  "Mine.h"
@implementation Mine
-(void)doNothing
{
}
@end

Wrapper Mine.cs:

Namespace MineSDK
{
                [BaseType (typeof (NSObject))]
                Interface Mine {
                [Export("doNothing")]
                Void doNothing();
}
}

That makes my dll no problem... then in my main program I have

[DllImport("__Internal")]
Static extern void doNothing();

MineSDK.Mine mine = new MineSDK.Mine();
Mine.doNothing();

Everything works fine up until the last line... as soon as the library is 
called it just shuts the program down.

My compiler options are -gcc_flags "-L${ProjectDir} -lMine -force_load 
${ProjectDir}/libMine.a -Objc"

I have tried everything I can think of and just cant get it to work... can 
anyone tell me where I have gone wrong?

Thanks
Dean

_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to