Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Clang linker error: no such file or directory (Error when linking libraries)
icon5.gif  Clang linker error: no such file or directory [message #57855] Tue, 21 December 2021 16:06 Go to next message
frederik.dumarey is currently offline  frederik.dumarey
Messages: 24
Registered: December 2021
Location: Belgium
Promising Member
I have the following error when using plugin/jpg library in specific:

(): Linking has failed
(): clang-11: error: no such file or directory: '@D:/Program'
(): clang-11: error: no such file or directory: 'Files'
(): clang-11: error: no such file or directory: '(x86)/Ultimate++/upp/out/MyApps/GuiRasterImages/CLANGx64.De bug.Debug_Full.Gui.Main\0.cmd'
(): clang-11: error: no input files

Almost sure it has to do because my path variable contains spaces?
Strange thing is I never had this with the default libraries (core, lib, draw, ...).

Can I change something in a config file or parameters to avoid this error? Rolling Eyes


Regards,

Frederik Dumarey
Belgium
icon3.gif  Re: Clang linker error: no such file or directory [message #57861 is a reply to message #57855] Wed, 22 December 2021 21:57 Go to previous message
frederik.dumarey is currently offline  frederik.dumarey
Messages: 24
Registered: December 2021
Location: Belgium
Promising Member
I found the solution:

Since I installed U++ in d:\program files(x86)\Ultimate++\upp some linking commands are not "space" aware and were responsible for the linking error. In order to fix this I did:

- create a directory symbolic link to d:\upp for the above directory
- changed the .var files to d://upp//...
- start theide.exe from d:\upp\theide.exe so path variables are reset to d:\upp

When I now add packages like plugin/jpg the linker refers to d:\upp\... without spaces in the file path and everything compiles okay as you can see hereunder:
Linking...
D:\upp\out\MyApps\CLANGx64.Debug.Debug_Full.Gui\GuiScanlines.exe (7829504 B) linked in (0:00.75)


Case closed and maybe it can help others, or could be "solved" in future releases Cool


Regards,

Frederik Dumarey
Belgium
Previous Topic: Focus problem
Next Topic: UnitTest++ in Bazaar packages - where?
Goto Forum:
  


Current Time: Thu Apr 18 06:30:28 CEST 2024

Total time taken to generate the page: 0.02020 seconds