How to specify gcc compiler additional parameters from Visual Studio project?

Anatoly Knigin 1 Reputation point
2022-11-06T20:07:01.173+00:00

Hello,

I try to use Visual Studio for remote Linux development and encountered a problem when trying to use additional libraries (WiringPi actually). For correct linkage the command line in Linux should be like the following: "gcc main.cpp - o Test -lwiringPi -lcrypt -pthread -lm -lrt". It compiles under Linux with no errors, but the question is how to specify these parameters (-lwiringPi -lcrypt -pthread -lm -lrt) in the Visual Studio project? I tried the "Additional options" field, but with no success; they do not appear in the resulting command line.

Developer technologies | C++
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.