Re-Definition of 'currentFunctionParameters'

Hi,

Iv been having a problem over the past day or so, when i try to create a function event in multiple scenes the compiler fails during the link phase stating that ‘currentFunctionParameters’ was defined in a RuntimeObjectFile.o, and later redefined in another RuntimeObjectFile.o of a slightly different number.

here is the error log file, if anyone could recommend a working solution id appreciate it, hopefully without having to recreate the project.:

C:\Users\admin\AppData\Local\Temp/GDTemporaries/GD0xe5633b8RuntimeObjectFile.o:GD0xe5633b8RuntimeEventsSource.cpp:(.bss+0x0): multiple definition of `currentFunctionParameters’

C:\Users\admin\AppData\Local\Temp/GDTemporaries/GD0xe563568RuntimeObjectFile.o:GD0xe563568RuntimeEventsSource.cpp:(.bss+0x0): first defined here

collect2: ld returned 1 exit status

Hi,

Can you send us your project so that we can test it and find the bug (I think it’s probably a bug on Game Develop’s side) ?

EDIT : Found the bug, just need to add a function in each of the two scene and then compile the project as an executable (the bug doesn’t happen in the scene preview)

Hi,

thanks for the response. I tried your solution, adding functions to both scenes but still seem to get the same problem, im not entirely sure what the cause is, either on my end or game develop’s. Id be happy to send my files, the events are a bit of a mess because of the lack of functions…but bare with me, i will PM you the password.

That’s not the solution, that’s what cause the bug. :laughing:

I’ve fixed it, I can send you a temporary version of GD by PM if you want to test the fix.

ah right, totally misread that. I assumed it was some sort of counter issue in the original source…but there we go. Sure id be happy to test it out :slight_smile: