Error using MiniB3D's Blitz3DSDK mod

BlitzMax Forums/MiniB3D Module/Error using MiniB3D's Blitz3DSDK mod

JaviCervera(Posted 2007) [#1]
I am using MiniB3D's version of the Blitz3DSDK module (which removes the 'bb' prefix from function names). When I try to compile a program made with it, I get the following error:

Compile Error: Duplicate identifier 'Flip' in modules 'blitz3d.blitz3dsdk' and 'brl.graphics'

I am inclusing the following modules in my program:

Framework Blitz3D.Blitz3DSDK
Import BRL.MaxGui
Import BRL.Win32MaxGui
Import BRL.Timer
Import BRL.EventQueue

How can I fix this?


klepto2(Posted 2007) [#2]
The problem is that brl.maxgui imports brl.graphics which includes the standard Flip. One solution would be to add a Flip Function to your app which should look like:

Function Flip()
 Blitz3D.Blitz3DSDK.Flip()
End Function


I don't know if it will work its just a guess.


JaviCervera(Posted 2007) [#3]
Didn't know that modules work as namespaces, it works now :)

Thanks!