0 votes

Hi,

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.

asked Dec 22, 2018 in Engine by Nick74044 (21 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.

answered Dec 23, 2018 by anomalocaris (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 How to use this Q&A? before posting your first questions.