Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

g++ build fail for no input file #76362

Closed
heartacker opened this issue Jun 30, 2019 · 4 comments
Closed

g++ build fail for no input file #76362

heartacker opened this issue Jun 30, 2019 · 4 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@heartacker
Copy link
Contributor

Issue Type: Bug

Executing task: g++ -g c:\Users\heart\Desktop\vscode_cpp\main.cpp -o C:\Users\heart\Desktop\vscode_cpp\main.exe -std=c++11 <

g++.exe: error: c:UsersheartDesktopvscode_cppmain.cpp: No such file or directory
g++.exe: fatal error: no input files
compilation terminated.

VS Code version: Code 1.35.1 (c7d83e5, 2019-06-12T14:30:02.622Z)
OS version: Windows_NT x64 10.0.18362

System Info
Item Value
CPUs Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz (8 x 1800)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 7.85GB (1.14GB free)
Process Argv
Screen Reader no
VM 0%
@vscodebot
Copy link

vscodebot bot commented Jun 30, 2019

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@vscodebot vscodebot bot added the terminal General terminal issues that don't fall under another label label Jun 30, 2019
@heartacker
Copy link
Contributor Author

I change my default console from cmd.exe to git-bash.exe, that why it fail, but, Is there any that can fix this problem between diff platform about path.

@Tyriar Tyriar assigned alexr00 and unassigned Tyriar Jul 4, 2019
@Tyriar Tyriar removed the terminal General terminal issues that don't fall under another label label Jul 4, 2019
@alexr00
Copy link
Member

alexr00 commented Jul 4, 2019

There is currently no way around this. You can specify a specific shell for the task in your task though:

			"options": {
				"shell": {
					"executable": "cmd.exe"
				}
			},

Dupe of #38381

@alexr00 alexr00 added the *duplicate Issue identified as a duplicate of another issue(s) label Jul 4, 2019
@vscodebot
Copy link

vscodebot bot commented Jul 4, 2019

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines.

Happy Coding!

@vscodebot vscodebot bot closed this as completed Jul 4, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Aug 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

3 participants