Mojo2 OSX build issue

Monkey Forums/Monkey Bug Reports/Mojo2 OSX build issue

soXes(Posted 2015) [#1]
Hi there!

Started adapting my code to use mojo2 and got an error during Xcode compilation.
The case is about circular imports. If I'll import mojo2 more then once within my source, I'm getting error about duplicated functions.

EXAMPLE (one from 7 similar errors):

MY_PROJECT_BULD/glfw3/main.cpp:4805:15: error: redefinition of 'BBLoadImageData'
BBDataBuffer *BBLoadImageData( BBDataBuffer *buf,String path,Array<int> info ){

MY_PROJECT_BULD/glfw3/main.cpp:4417:15: note: previous definition is here
BBDataBuffer *BBLoadImageData( BBDataBuffer *buf,String path,Array<int> info ){


GC-Martijn(Posted 2015) [#2]
i have the same problem, but din't try to fix it.


soXes(Posted 2015) [#3]
Hi again!

Was my fault. Figured it out.
I had explicit Import opengl.gles11 which shall be for now replaced with Import opengl.gles20

Regards.


GC-Martijn(Posted 2015) [#4]
Jep that's it, now I get a new error but that is something else haha