Lỗi the system cannot find the file specified trong c++

I am having a similar issue as this post. However, on build I have sầu 0 errors, 0 warning, and 0 messages.

You watching: Lỗi the system cannot find the file specified trong c++

I took a look at Project -> Properties but I bởi vì not seem lớn have a linker option (which appears khổng lồ be a typical fix that others have sầu used to solve sầu this issue).

I have also tried Rebuilding Solution và then running but that does not seem khổng lồ work either...

*

Based on the aforementioned similar issue I understvà the premise that "when an exe cộ cannot be created (or in my case - found)... then naturally it cannot be run as it does not exist". However, I vày not understand where the disconnect is occurring that is preventing this file from either being found or created...

Any help sorting this out would be greatly appreciated. Cheers.

See more: Thạc Sĩ Tiếng Anh Viết Tắt Học Vị Trong Tiếng Anh, Các Từ Viết Tắt Học Vị Trong Tiếng Anh

*


c++
codeideerror2.png (64.4 KiB)
codeideerror.png (76.5 KiB)
Comment
Comment · Show 1
Comment
5 |1600 characters needed characters left characters exceeded
▼ Toggle Comment visibility. Current Visibility: Visible lớn all users

Attachments: Up to lớn 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.


*
SimpleSamples · Jul 18 at 05:08 PM

I am not sure what directory the main.cpp file is in but you can right-cliông xã Source File in the Solution Explorer then select "Add.." then "existing Item" then add main.cpp. In the future you can create a C++ project in the same way you did but then you can right-cliông xã Source File in the Solution Explorer then select "Add.." then "new Item" and that will create an empty cpp file.


1 Vote 1 ·

2 Answers



Clichồng to lớn vote 2 Votes" 2 Clichồng lớn down vote
Viorel-1 answered • Jul 18, "21 | Viorel-1 edited • Jul 18, "21

It seems that you created an empty project và main.cpp is not included into project.

See more: Lỗi Tai Nghe Chỉ Nghe Được 1 Bên ? Tai Nghe Chỉ Nghe Được 1 Bên, Xử Lý Như Thế Nào

Try creating a new “Console App” project, kiểm tra that it runs, then add your code. It is possible to lớn add existing files too.


Comment
Comment Show 0
Comment
5 |1600 characters needed characters left characters exceeded
▼ Toggle Comment visibility. Current Visibility: Visible khổng lồ all users

Attachments: Up lớn 10 attachments (including images) can be used with a maximum of 3.0 MiB each & 30.0 MiB total.


*

Cliông chồng to lớn vote 0 Votes" 0 Click to lớn down vote
IsaacTait-9448 answered • Jul 18, "21

When I created the project I went to File -> New -> File instead of the way
SimpleSamples suggested. Here is some documentation on how lớn bởi vì it correctly (both for myself và for anyone else who comes across this in the future). Thank you
Viorel-1 for pointing out my error. I am getting it sorted out now. Cheers!


Comment
Comment Show 0
Comment
5 |1600 characters needed characters left characters exceeded
▼ Toggle Comment visibility. Current Visibility: Visible to all users

Attachments: Up khổng lồ 10 attachments (including images) can be used with a maximum of 3.0 MiB each & 30.0 MiB total.


question details


9 people are following this question.


*
*
*
*
*
*
*

Answers Subscribe to Answers Answers & Comments Subscribe to lớn Comments and Answers

Related Questions


MFC C++ application: how to clear command line arguments in Task Manager?


Chuyên mục: Chia sẻ