Bad Routine Number Jolt Physics

new topic     » topic index » view thread      » older message » newer message

Hello all,

While working my Jolt physics wrapper, I come across the Bad Routine Number error. It starts off with the first function called. Any JPC function called seems to bring out about this error. I know I used the mingw32 to make the DLL, so it is 32-bits DLL. The wrapper library is pretty big, so I'll put it in zip file. Perhaps someone can help me?

 
include std/ffi.e 
include std/machine.e 
include std/os.e 
 
public atom jolt = 0 
 
ifdef WINDOWS then 
	jolt = open_dll("joltc.dll") 
	elsifdef LINUX or FREEBSD then 
	jolt = open_dll("libjoltc.so") 
end ifdef 
 
--Added this in, the error didn't come up, so the DLL is being loaded 
if jolt = -1 then 
	puts(1,"Failed to load library!\n") 
	abort(0) 
end if 
 
public constant xJPC_RegisterDefaultAllocator = define_c_proc(jolt,"+JPC_RegisterDefaultAllocator",{}) 
 
public procedure JPC_RegisterDefaultAllocator() 
	c_proc(xJPC_RegisterDefaultAllocator,{}) 
end procedure 
 
public constant xJPC_RegisterTypes = define_c_proc(jolt,"+JPC_RegisterTypes",{}) 
 
public procedure JPC_RegisterTypes() 
	c_proc(xJPC_RegisterTypes,{}) 
end procedure 
include std/ffi.e 
 
include std/machine.e 
 
include joltc.e 
 
JPC_RegisterTypes() --Bad routine number starts here 

https://1fichier.com/?qt5fk2hrg29wua1odzll - JoltC Wrapper

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu