Cant create Win32-DLL

Previous topic - Next topic

MrTAToad

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

Hemlos

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.
Bing ChatGpt is pretty smart :O

MrTAToad

Tried it with export at the bottom too - didn't help...

MikeHart

I can confirm this too.