Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Linker Error (ld.exe): cannot find location (Read 3342 times)
-Johan-
Newbies
*
Offline


Posts: 3
Joined: Jan 11th, 2017
Linker Error (ld.exe): cannot find location
Jan 11th, 2017 at 1:36pm
Print Post  
Hello,
Let me start by explaining what we are trying to achieve and what we have done so far:
-We are using Visual Studios (2015) Update 2 / 3
-We are pro licenses of Visual Mirco 
-We are trying to make a project which can be checked in / out by the entire team (SVN)
-We want to be able to use other 3rd party plugins (such as resharper)
-We have moved all files which are required (cores, arduino15(https://github.com/arduino/Arduino) onto one harddrive (on each pc).
-We have changed the location of these using the setting -> Options -> Visual Micro -> Contributions Folder to match the new location of the core files.
-We have adjusted the path of the sketchbook location to match the new folder structure. (The path which we have entered is the root of our project and our own libraries dir)


What follows is a console dump of a build attempt:

===================================
Compiling 'cello' for 'Generic ESP8266 Module'
ld.exe: cannot find -lm
ld.exe: cannot find -lgcc
ld.exe: cannot find -lhal

Error compiling for board Generic ESP8266 Module
Build failed for project 'cello'
ld.exe: cannot find -lphy
ld.exe: cannot find -lpp
ld.exe: cannot find -lnet80211
ld.exe: cannot find -lwpa
ld.exe: cannot find -lcrypto
ld.exe: cannot find -lmain
ld.exe: cannot find -lwps
ld.exe: cannot find -laxtls
ld.exe: cannot find -lsmartconfig
ld.exe: cannot find -lmesh
ld.exe: cannot find -lwpa2
ld.exe: cannot find -llwip_gcc
ld.exe: cannot find -lstdc++
 
collect2.exe*: error: ld returned 1 exit status
==================================

It seems like the linker is having trouble finding the files required (or location of the files required?)

Is there a specific folder structure that we need to follow?

Any help would be much appreciated.
Thanks in advance,
Johan

*Edit*
We have found the issue, because we changed all locations. There was still some reference to the old files (in C:\...\AppData\.... ) And because of some files where automatically placed on the ignore list of our SVN tool not all files where committed from the arduino15 folder. 

A general question: We have read that you are currently working on "team solution" (changelog newest version). Is there anything we need to look out for or take into account with coming versions?  


« Last Edit: Jan 11th, 2017 at 2:39pm by -Johan- »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Linker Error (ld.exe): cannot find location
Reply #1 - Jan 11th, 2017 at 3:04pm
Print Post  
Hi,

Thanks for the update and good to hear its working.

The team changes will be compatible with your config. ..

Minor changes ensure that all includes paths in the project (which are for intellisense) are relative paths.

Prevented checking out project unless it really has changed

In the last version we already added support for shared C++ projects but the next version also to allow the projects to be specified as "Compile as Library"

It is possible that after shared projects are better understood people will feel the "Team" work can be broken down into separate projects making source control less prone to conflicts.


ps: "vMicro>Compiler>Show build properties" would have helped to solve your original issue. It will show all the paths and properties in the output after a build.
« Last Edit: Jan 11th, 2017 at 3:05pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint