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
Hot Topic (More than 8 Replies) Build Fail, Error compiling project sources, E1389 (Read 2441 times)
CSC
Junior Member
**
Offline


Posts: 38
Location: Panama
Joined: Apr 17th, 2020
Build Fail, Error compiling project sources, E1389
Mar 29th, 2024 at 12:31am
Print Post  
I was recently making changes to some code, which I have built successfully many times (including recently just before this error occured). I did not make any intentional changes to the configuration (only to source code). After my last changes, which were just restructuring the code, the build failed. 

Now I cannot build this solution or any others (unmodified) that I have tested. 

I can build this source code successfully using the Arduino IDE (2.3.2) directly.

Attached are the Build Properties and Error List.
« Last Edit: Mar 29th, 2024 at 1:58pm by CSC »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Build Fail, Error compiling project sources, E1389
Reply #1 - Mar 31st, 2024 at 6:51pm
Print Post  
It might be that you are using a very old version of visual micro.

Please switch on vMicro>Compiler>Verbose and provide the build output again.

The error_list is not required.
  
Back to top
IP Logged
 
CSC
Junior Member
**
Offline


Posts: 38
Location: Panama
Joined: Apr 17th, 2020
Re: Build Fail, Error compiling project sources, E1389
Reply #2 - Apr 4th, 2024 at 1:00am
Print Post  
Version shows as 2.2023.0220. 

Verbose build output attached. 

  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
CSC
Junior Member
**
Offline


Posts: 38
Location: Panama
Joined: Apr 17th, 2020
Re: Build Fail, Error compiling project sources, E1389
Reply #3 - Apr 4th, 2024 at 1:10am
Print Post  
Updated to version 2.2024.0223.

Same build failure. 

  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2695
Joined: Feb 13th, 2019
Re: Build Fail, Error compiling project sources, E1389
Reply #4 - Apr 4th, 2024 at 10:00am
Print Post  
Thanks for the logs, can you email us a copy of the merged CPP file from the build folder so we can review if this is a prototype generation issue?
BuildFolder/PropaneTankGauge.cpp
« Last Edit: Apr 4th, 2024 at 10:08am by Simon@Visual Micro »  
Back to top
IP Logged
 
CSC
Junior Member
**
Offline


Posts: 38
Location: Panama
Joined: Apr 17th, 2020
Re: Build Fail, Error compiling project sources, E1389
Reply #5 - Apr 4th, 2024 at 4:06pm
Print Post  
Will do.
  
Back to top
 
IP Logged
 
CSC
Junior Member
**
Offline


Posts: 38
Location: Panama
Joined: Apr 17th, 2020
Re: Build Fail, Error compiling project sources, E1389
Reply #6 - Apr 4th, 2024 at 4:42pm
Print Post  
Link to build file below (reply window did not show a means of attaching a file):

https://www.dropbox.com/scl/fi/xwo011vdi4kdy6qirb1in/PropaneTankGauge.cpp?rlkey=...
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2695
Joined: Feb 13th, 2019
Re: Build Fail, Error compiling project sources, E1389
Reply #7 - Apr 5th, 2024 at 11:22am
Print Post  
Thanks for the CPP file, it doesn't appear to be an issue with the prototype generation from what we can see currently.

Currently I get the same first error in the Arduino IDE about the DOUT variable, which is caused by it conflicting with a struct in the HX711.h file, so I must be missing something.

In the Arduino IDE can you enable the File > Preferences > Show Verbose Output During Compile, and then compile the same code there and attach the full output for comparison?
  
Back to top
IP Logged
 
CSC
Junior Member
**
Offline


Posts: 38
Location: Panama
Joined: Apr 17th, 2020
Re: Build Fail, Error compiling project sources, E1389
Reply #8 - Apr 6th, 2024 at 6:33pm
Print Post  
Thanks for the effort!


I built again using Arduino 2.0 with verbose enabled

IDE details: 

Version: 2.3.2
Date: 2024-02-20T10:04:35.814Z
CLI Version: 0.35.3


Link to verbose output:

https://www.dropbox.com/scl/fi/prxoo2qc0ba8csz1mowgo/PropaneMon-Arduino-Compile-...
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2695
Joined: Feb 13th, 2019
Re: Build Fail, Error compiling project sources, E1389
Reply #9 - Apr 8th, 2024 at 9:51am
Print Post  
Thanks for the logs, it appears Visual Micro is detecting the incorrect HX711 library when comparing between the Arduino and vMicro logs.

Has the HX711 Library been added to the vMicro Solution as a Shared Project? (it will show in Solution Explorer if it has)

Can you run the Build > Clean Solution in vMicro and then rebuild the project and re-attach the latest log?
« Last Edit: Apr 8th, 2024 at 9:59am by Simon@Visual Micro »  
Back to top
IP Logged
 
CSC
Junior Member
**
Offline


Posts: 38
Location: Panama
Joined: Apr 17th, 2020
Re: Build Fail, Error compiling project sources, E1389
Reply #10 - Apr 8th, 2024 at 12:35pm
Print Post  
Thanks, I will take a look at that. I have done a clean on this solution and rebuilt, but with the same failure. 

Will look at the HX library setup a bit closer. 



  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2695
Joined: Feb 13th, 2019
Re: Build Fail, Error compiling project sources, E1389
Reply #11 - Apr 8th, 2024 at 12:53pm
Print Post  
Thanks, can you attach the latest verbose build log from Visual Micro?

There shouldn't be anything that needs changing with the HX711 library, there are two versions installed, and only one should be automatically resolved in Visual Micro and Arduino alike.
  
Back to top
IP Logged
 
CSC
Junior Member
**
Offline


Posts: 38
Location: Panama
Joined: Apr 17th, 2020
Re: Build Fail, Error compiling project sources, E1389
Reply #12 - Apr 9th, 2024 at 3:40am
Print Post  
I reviewed the libraries configuration and discovered that there were two versions of the HX711 library installed. This has never caused a problem before, but something I changed in this solution caused it to become a problem. 

I could compile other source that used the HX711 library (both in the Arduino IDE and under VS), but not this one. 

I removed one of the HX711 libraries and now the problem is resolved.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2695
Joined: Feb 13th, 2019
Re: Build Fail, Error compiling project sources, E1389
Reply #13 - Apr 9th, 2024 at 9:37am
Print Post  
Thanks for the update, and there shouldn't be a need to remove the library as you say.

Could you attach or email the VCXPROJ file for the problematic project?
  
Back to top
IP Logged
 
CSC
Junior Member
**
Offline


Posts: 38
Location: Panama
Joined: Apr 17th, 2020
Re: Build Fail, Error compiling project sources, E1389
Reply #14 - Apr 9th, 2024 at 6:56pm
Print Post  
Link to VCXPROJ file: 

https://www.dropbox.com/scl/fi/ur5x2rdvhx3bxrkdr7hud/PropaneTankGauge.vcxproj?rl...

Note: I did not preserve the VCXPROJ file for the project when it was having problems. So this one is post problem.
« Last Edit: Apr 13th, 2024 at 12:35pm by CSC »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint