Visual studio 2019 for Linux: g++: No such file or directory

  • Thread starter Thread starter Spakr
  • Start date Start date
S

Spakr

Guest
I write a project named ProcA under the default settings in Visual Studio 2019, and add a file in local directory:

\repo\ProcA\src\base\task.cpp

When I compile the source file, I find the the file is copied to the right place in the remote Ubuntu computer: ~/projects/ProcA/src/base/task.cpp

But the compiler returns a error:

>g++ : error : /home/tommy/projects/ProcA/task.cpp: no such file or directory

It is clear that the g++ compiler try to find the file in the top directory.

Can anyone tell me how to set the IDE to solve the problem?

Many thanks.

Continue reading...
 
Back
Top