search for: addfunc

Displaying 4 results from an estimated 4 matches for "addfunc".

Did you mean: addenc
2010 Oct 04
0
[LLVMdev] LLVM ERROR: Program used external function 'printd' which could not be resolved!
...xecutable itself, if you want to link in something that is exported from itself, you can do this: export "C" { void printInt(int i) { printf("%i", i); } typedef void(*printIntType)(int); } int main(void) { HMODULE self = GetModuleHandle(0); printIntType printIntPtr = (AddFunc)GetProcAddress(self, "printInt"); (*printIntPtr)(42); } And if you want to check for something exported from any currently loaded module, EnumProcessModules can be used for that to get all modules loaded into the current process. So is this really all that is needed to get linking wor...
2010 Oct 04
1
[LLVMdev] LLVM ERROR: Program used external function 'printd' which could not be resolved!
>>> Any help will be much appreciated. Thanks! >> Windows does not support dynamic linking. You will need to resolve >> externals by hand. > > Why would it not support dynamic linking?  What about loadlibrary and > its kin are not sufficient to handle this? Well, you cannot easily export stuff from an executable and this is the main issue here. (And you cannot e.g.
2007 Sep 13
0
2 commits - libswfdec/swfdec_as_function.c test/trace
...index 0000000..51f96bd --- /dev/null +++ b/test/trace/scope-chain-just-how-deep.as @@ -0,0 +1,33 @@ +// makeswf -v 7 -s 200x150 -r 1 -o scope-chain-just-how-deep.swf scope-chain-just-how-deep.as +// taken with permission from http://www.timotheegroleau.com/Flash/articles/scope_chain.htm + +a1 = 5; +addFunc = function(obj) { + var a2 = 6; + var func = function(obj) { + var a3 = 7; + var func = function(obj) { + var a4 = 8; + var func = function(obj) { + var a5 = 9; + obj.retrieve = function(refName) { + var a6 = 10; + trace(eval(refName)); + }; + }; + func(obj); + };...
2010 Oct 02
4
[LLVMdev] LLVM ERROR: Program used external function 'printd' which could not be resolved!
Hi Buit the Kaleidoscope example under MinGW and everything runs fine except when I try the following example in Chapter 6: extern printd(x); printd(123); where printd is the library function defined in C as extern "C" double printd(double X) { printf("%f\n", X); return 0; } The error message is: LLVM ERROR: Program used external function