neikeq / GodotSharp

Moved to the Godot repo: https://github.com/godotengine/godot/tree/master/modules/mono
MIT License
60 stars 8 forks source link

Fixed compiler errors in monodevelop_instance.cpp #27

Closed BrainBlasted closed 7 years ago

BrainBlasted commented 7 years ago

There were a couple compiler errors in this file, can be viewed here.

neikeq commented 7 years ago

What compiler were you using? I can't believe neither gcc or msvc errored with this.

karroffel commented 7 years ago

@neikeq maybe it's used as an initializer list, in which case it's perfectly fine.

BrainBlasted commented 7 years ago

I was using Clang

neikeq commented 7 years ago

Ah, right. I'm using C++11. Any idea how to tell scons to disable it? I'm tired of not noticing these errors until travis notifies me.

akien-mga commented 7 years ago

I guess -std=c++03?

neikeq commented 7 years ago

But how do you pass compiler flags to scons?

akien-mga commented 7 years ago

It reads them from the environment AFAIK. I think there's also a scons option to define them, but env works. Not sure if CCFLAGS works though or if it should be CFLAGS+CXXFLAGS.

export CCFLAGS='-std=c++03'
scons p=x11