Displaying 1 result from an estimated 1 matches for "linking_test".
2009 Oct 30
0
[LLVMdev] JIT, incremental 'linking' and global variables.
...function that uses this
global variable, for example:
extern int i;
int main() {
printf("%d\n",i);
}
But I was unable to find a workable solution.
With the example attached (the Makefile, as is, works only on Macos),
you can reproduce my result by doing:
tar xfz linking_test.tar.gz
cd linking_test
gmake
and then run 'tester' with 0 through 3 as argument and you should get:
$ ./tester 0
Loading declaration.cxx
Loading main.cxx
LLVM ERROR: Could not resolve external global address: i
$ ./tester 1
Loading declaration.cxx
Loading declaration.cxx
Loadin...