0 votes


I'm trying to compile Godot using Visual Studio 2017 compiler, cl. I am copying the tutorial and keep getting the error 1>cl : Command line warning D9002: ignoring unknown option for '-std=c++11' and '-fPIC'. Does anyone know what the issue may be?

I can compile Godot without using '-std=c++11' or '-fPIC', and it works fine, but I can't setup my module as a shared library.

in Engine by (23 points)

1 Answer

0 votes

Those are command line arguments for the GNU compiler (gcc). You'll have to change them to whatever arguments cl takes to use C++11 and output position-independent code (generate a DLL?). I don't know how to do this off the top of my head because I haven't used Visual Studio in a long time.

by (56 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.