vscode-cpptools icon indicating copy to clipboard operation
vscode-cpptools copied to clipboard

gcc does not link to standard library header files

Open Ghostchamb3r opened this issue 1 year ago • 0 comments

Environment

  • OS and Version: Windows 11/Ubuntu
  • VS Code Version: 1.94.2
  • C/C++ Extension Version: 0.24.0
  • If using SSH remote, specify OS of remote machine:

Bug Summary and Steps to Reproduce

Bug Summary: When including standard c library header files the compiler does not link to them resulting in either an error that the directory or file does not exist (when running in terminal) or if running from visual code the error states that the function that is called from the standard library is not recognized.

#include <math.h>

use either fmod or floor functions in your code and thecompiler will preoduce an exit code 1 and an error message.

Configuration and Logs

idfk

Other Extensions

No response

Additional context

No response

Ghostchamb3r avatar Oct 19 '24 13:10 Ghostchamb3r