Skip to content

Instantly share code, notes, and snippets.

@sam-mccall
Created May 24, 2012 09:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sam-mccall/2780569 to your computer and use it in GitHub Desktop.
Save sam-mccall/2780569 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include "dart_api.h"
DART_EXPORT Dart_Handle bug_Init(Dart_Handle parent_library) {
Dart_CreateNativeWrapperClass(parent_library, Dart_NewString("C"), 1);
return parent_library;
}
#import('dart-ext:bug');
class C {}
main() => new C();
#!/bin/bash
DART_INCLUDE=$HOME/dart/source/runtime/include
g++ -O2 -DDART_SHARED_LIB -I$DART_INCLUDE -rdynamic -shared -fPIC -m32 bug.c -o libbug.so
../runtime/vm/object.h:1668: error: expected: raw() != null()
Aborted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment