franneck94 / Vscode-C-Cpp-Runner

🚀 Compile, run and debug single or multiple C/C++ files with ease. 🚀
MIT License
53 stars 14 forks source link

math.h link in makefile und runner #39

Closed ghost closed 2 years ago

ghost commented 2 years ago

Hi Jan,

ich hab den math.h implementiert, der Programm wollte aber nicht kompilieren, nach etwas Suche sah ich, dass der -lm Option fehlte. Hab ihn dann in deiner (von C kurs) Makefile wie unten hinzufügt.

#############

TARGETS

#############

build_single: $(COMPILER_CALL) -o $(EXECUTABLE_NAME) $(FILE_NAME) -lm

ich weiß es aber nicht wie man das beim Runner auch hinzufügt.

franneck94 commented 2 years ago

Hi,

with the setting "C_Cpp_Runner.linkerArgs" you can set the linker arguments. For more information see extension settings entry of the README.