formulahendry / formulahendry/vscode-code-runner
setup only compiles main.cpp leaving out all other cpp, or c files needed to be compiled with main
- Dominant language
- TypeScript
- Stars
- 2.4k
- Forks
- 351
- PR merge metrics
- No merged PRs in 30d
Description
Basic setup, I have yet to find anything on how to get it to compile the rest of the files. Not everyone uses only main.c or main.cpp for their programs. I have to end up switching to the terminal provided within VS code , then adding everything needed to be compiled at the same time to get my programs to compiles. Which defeats the purpose of this does it not?
` "java": "cd $dir && javac $fileName && java $fileNameWithoutExt",
"c": "cd $dir && gcc $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
"cpp": "cd $dir && g++ -std=gnu++11 $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",`
errors gotten.
> [Running] cd "/media/data/C-Projects/VSC/C++/mh5000/" && g++ -std=gnu++11 main.cpp -o main && "/media/data/C-Projects/VSC/C++/mh5000/"main
> /tmp/ccaSa1en.o: In function `main':
> main.cpp:(.text+0x1c): undefined reference to `parse_options_array(int, char const**)'
> collect2: error: ld returned 1 exit status
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.