Code: Select all
---------------------------
TailBite Error
---------------------------
PBCompiler: /COMMENTED /DEBUGGER
******************************************
PureBasic 4.10 (Windows - x86)
******************************************
Warning: can't load the '' subsystem
Compiling D:\ \Projects\Pure Basic\PureGDK\Plugins\Compile Plugins\Lib-P_2DPluginKit.pb
Loading external libraries...
Starting compilation...
Error: Line 2 - Invalid name: same As an external command.
The pipe has been ended.
---------------------------
OK
---------------------------
Code: Select all
PrototypeC Protop2dStart2DPlugKit(Username, UserCode)
ProcedureDLL p2dStart2DPlugKit(Username.s, UserCode.s)
Static Ptr
If Not GDKLoadPtr(@Ptr,"2DPluginKIT.dll","Init2DPlugKIT")
ProcedureReturn 0
EndIf
If Not GDKDebuggerPresent()
Function.Protop2dStart2DPlugKit=Ptr
Result=Function(@Username.s, @UserCode.s)
GDKCheckRuntimeError()
ProcedureReturn Result
EndIf
ProcedureReturn GDKMsgLong(Ptr, #Long, 2, 6, @Username.s, @UserCode.s)
EndProcedure
Tailbite also erroneously creates a "PureGDKThreadSafe" folder in my PureBasic installation directory for some reason.
I am compiling from the command line using /SUBS:PureGDKThreadSafe. This problem only occurs when compiling with the /SUBS: command line option.
You'll need the PureGDK framework library to compile. I've included the threadsafe and non-threadsafe compiled Tailbite libraries:
http://puregdk.com/files/Lib_GDKPlugin.zip