GLBasic forum

Main forum => Bug Reports => Topic started by: MrTAToad on 2009-Aug-14

Title: Cant create Win32-DLL
Post by: MrTAToad on 2009-Aug-14
With the following :

Code (glbasic) Select


EXPORT AddFloat


FUNCTION AddFloat#: var1#, var2#

RETURN var1+var2

ENDFUNCTION


The compiler generates the following error :
C:\DOCUME~1\Nicholas\LOCALS~1\Temp\glbasic\gpc_temp0.cpp: In function `int DllMain(HINSTANCE__*, long unsigned int, void*)':
S:/Compiler/platform/Include/glb.h:312: error: too many arguments to function `int __GLBASIC__::__GlobalInit(HINSTANCE__*, int, const char*)'
C:\DOCUME~1\Nicholas\LOCALS~1\Temp\glbasic\gpc_temp0.cpp:65: error: at this point in file
Title: Re: Cant create Win32-DLL
Post by: Hemlos on 2009-Aug-14
EXPORT Syntax:

Quote from: From GernotFUNCTION foo: bar
ENDFUNCTION

...
EXPORT foo

-> make win32.dll
-> see the created project_dll.gbas file and the project.dll

However, the command is bugged.
Gernot is aware, and this is on his TO DO list.
Title: Re: Cant create Win32-DLL
Post by: MrTAToad on 2009-Aug-15
Tried it with export at the bottom too - didn't help...
Title: Re: Cant create Win32-DLL
Post by: MikeHart on 2009-Aug-15
I can confirm this too.