You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I entered the windows library path that contains the linux shared libraries either on VC++ directories or in the "Shared library search path" of the linker but when linking the following error occurs:
Illegal characters in path
Expected results:
Linker links the objects file correctly in order to create the executable file.
Actual results:
No executable .out file is created in the relevant Ubuntu project folder.
The build output window correlates the error with the following line
I had this same problem, and it took a while to figure out. Of course, it had nothing to do with having illegal characters in the path!
Here are 2 important things to check:
Make sure you have specified all the libraries needed for your project in Configuration Properties->Linker->Input->Library Dependencies. For my project it is: boost_filesystem;boost_system;boost_iostreams;boost_program_options;boost_date_time;gomp
Copy (using WinSCP, ftp, etc.) the entire /usr/include directory tree from your Ubuntu machine to a local directory, say, c:\Libraries\Linux\usr\include. Then specify the local directory as the first path in Configuration Properties-> VC++ Directories->General->Include Directories, for example, c:\Libraries\Linux\usr\include;C:\Libraries\Linux\usr\include\x86_64-linux-gnu;$(IncludePath);$(ISenseIncludePath)
These steps are necessary not only for proper compile/link but also for Intellisense to (mostly) work.
I entered the windows library path that contains the linux shared libraries either on VC++ directories or in the "Shared library search path" of the linker but when linking the following error occurs:
Illegal characters in path
Expected results:
Linker links the objects file correctly in order to create the executable file.
Actual results:
No executable .out file is created in the relevant Ubuntu project folder.
The build output window correlates the error with the following line
Ld Condition="'@(RemoteLink)' != ''"
of the file:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Application Type\Linux\1.0\Linux.Common.targets
VC++ 2015 and 2017
VirtualBox Ubuntu 16.04
gcc 6.2
gdbserver 7.11.1
Windows 7
The text was updated successfully, but these errors were encountered: