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) vmicro can't find libaries in the lwip folders (Read 2726 times)
dubb
Junior Member
**
Offline


Posts: 10
Joined: Jul 22nd, 2020
vmicro can't find libaries in the lwip folders
Jul 22nd, 2020 at 7:55am
Print Post  
i used platformio arduinoide before but now switching to vmicro for better debuging capabilites but now i am encountering a problem that i have not faced.

when i try to include etharp like this

extern "C"{
    #include "lwip/etharp.h"
}

#includes having a red underline when i hover it error
canno't open source file "lwip/etharp.h"
all of the structs  from etharp.h becames undefined and so on

but this wasn't a issue in arduino ide neither platformio
the <ESP8266WIFI.h> libary works in fact every include folder i is avaible other than lwip and lwip2 i have deep search for libaries enabled and tried to include it with its full path this half worked it find the etharp file sure but it couldn't find all of the includes inside the etharp file which rendered the etharp file by itself useless is there a manual way to add preprocesser flags 
(if i wasn't clear this issue is only on vmicro)


also visual stuido 2017 became very slow after downloading vmicro every time i open the program irecive vmicro is slowing down message

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


Posts: 2145
Joined: Feb 13th, 2019
Re: vmicro can't find libaries in the lwip folders
Reply #1 - Jul 22nd, 2020 at 9:15am
Print Post  
Would it be possible to provide a copy of the example sketch with the problem, and a copy of the build output as shown in the yellow box at the top, so we can replicate reliably?
  
Back to top
 
IP Logged
 
dubb
Junior Member
**
Offline


Posts: 10
Joined: Jul 22nd, 2020
Re: vmicro can't find libaries in the lwip folders
Reply #2 - Jul 22nd, 2020 at 11:40am
Print Post  
Thanks for the reply i have sent an email but here are the files anyways
  

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


Posts: 10
Joined: Jul 22nd, 2020
Re: vmicro can't find libaries in the lwip folders
Reply #3 - Jul 22nd, 2020 at 11:43am
Print Post  
The ino file seems to be broken heres a txt version of it
  

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


Posts: 2145
Joined: Feb 13th, 2019
Re: vmicro can't find libaries in the lwip folders
Reply #4 - Jul 22nd, 2020 at 12:08pm
Print Post  
Thanks for the sketch and log.

Error on Build
The error shown in the log is the same in the Arduino IDE for me with the sketch supplied:-
Code
Select All
error: no matching function for call to 'HardwareSerial::println(ip_addr_t&)' 



Should the line of code be as below?
Code
Select All
Serial.println(netif_list->ip_addr.addr); 



Intellisense Errors
Are these present after saving and building the project successfully?
I currently don't see any of these for the ESP8266 Generic board, using core 2.7.1 or 2.7.2 with your sketch with the correction.

Would it be possible to enable the vMicro > Compiler > Verbose & Show Build Properties, and re-send the build log so we can be sure we are replicating all environmental aspects correctly?
  
Back to top
 
IP Logged
 
dubb
Junior Member
**
Offline


Posts: 10
Joined: Jul 22nd, 2020
Re: vmicro can't find libaries in the lwip folders
Reply #5 - Jul 22nd, 2020 at 12:11pm
Print Post  
the code wasn't exactly like that i just put something up to show the errors when i hover my mouse over the include section it says canno't open source files "lwip/etharp.h" my code works on arduino ide i just copy pasted into vmicro unfortunatly i can't share the exact code

heres the file with verbose and show options on
« Last Edit: Jul 22nd, 2020 at 12:15pm by dubb »  

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


Posts: 2145
Joined: Feb 13th, 2019
Re: vmicro can't find libaries in the lwip folders
Reply #6 - Jul 22nd, 2020 at 12:16pm
Print Post  
Understood.   

Can you confirm the project you are using does build successfully and has been built?
Can you supply the build output with settings set as requested so we can at least replicate the correct environment and versions?
  
Back to top
 
IP Logged
 
dubb
Junior Member
**
Offline


Posts: 10
Joined: Jul 22nd, 2020
Re: vmicro can't find libaries in the lwip folders
Reply #7 - Jul 22nd, 2020 at 12:23pm
Print Post  
1.Yes project that i am using has been succesfuly build and uploaded on arduino ide

2.added the file
(file output_detailed from my post before is output of the ino file. 

The file i added here is the build output of main ino that i have not sent here)
« Last Edit: Jul 22nd, 2020 at 12:26pm by dubb »  

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


Posts: 2145
Joined: Feb 13th, 2019
Re: vmicro can't find libaries in the lwip folders
Reply #8 - Jul 22nd, 2020 at 12:32pm
Print Post  
1) Sorry I meant has it been built in Visual Micro (which the log shows it has). Can you confirm the errors are still visible after saving the INO file as well after the build?

2) Can you enable both of the options for "Show Build Properties" and for "Verbose" for the build log submission, just so it reveals all build environment detail.
  
Back to top
 
IP Logged
 
dubb
Junior Member
**
Offline


Posts: 10
Joined: Jul 22nd, 2020
Re: vmicro can't find libaries in the lwip folders
Reply #9 - Jul 22nd, 2020 at 12:38pm
Print Post  
Thanks for help.

1)i don't know what do you mean by saving the ino. file file is already saved?

2)both were enabled already

EDIT:for more context i added a picture showing the error i am talking about when i hover include it  shows cannot find source for "lwip/etharp.h" and all of the data types structures and functions from etharp.h have it too
« Last Edit: Jul 22nd, 2020 at 12:45pm by dubb »  

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


Posts: 2145
Joined: Feb 13th, 2019
Re: vmicro can't find libaries in the lwip folders
Reply #10 - Jul 22nd, 2020 at 1:15pm
Print Post  
Could you check the options are enabled as shown in the below picture, and re-build and submit the log again:

  
Back to top
 
IP Logged
 
dubb
Junior Member
**
Offline


Posts: 10
Joined: Jul 22nd, 2020
Re: vmicro can't find libaries in the lwip folders
Reply #11 - Jul 22nd, 2020 at 1:22pm
Print Post  
i already had  verbose and show build properties enabled i enabled show build folder and built again. Thanks again for helping me throughly.
  

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


Posts: 2145
Joined: Feb 13th, 2019
Re: vmicro can't find libaries in the lwip folders
Reply #12 - Jul 22nd, 2020 at 1:32pm
Print Post  
Brilliant, thanks for the detail.

Could you also send:-
1) a screenshot of the entire IDE with the sketch open showing the error? 
2) Confirm the Visual Studio Version from Help > About?
  
Back to top
 
IP Logged
 
dubb
Junior Member
**
Offline


Posts: 10
Joined: Jul 22nd, 2020
Re: vmicro can't find libaries in the lwip folders
Reply #13 - Jul 22nd, 2020 at 1:40pm
Print Post  
1)i didn't get which error you were talking about but i have included a picture
2) version 15.9.25
  

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


Posts: 2145
Joined: Feb 13th, 2019
Re: vmicro can't find libaries in the lwip folders
Reply #14 - Jul 22nd, 2020 at 1:55pm
Print Post  
Perfect, thanks, and the errors are shown (the red underlines), and also shows it has been saved (no * after file name in tab).
« Last Edit: Jul 22nd, 2020 at 3:03pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: vmicro can't find libaries in the lwip folders
Reply #15 - Jul 22nd, 2020 at 2:54pm
Print Post  
Could you close the solution and attach the *.vcxproj file for us to review?
  
Back to top
 
IP Logged
 
dubb
Junior Member
**
Offline


Posts: 10
Joined: Jul 22nd, 2020
Re: vmicro can't find libaries in the lwip folders
Reply #16 - Jul 22nd, 2020 at 3:14pm
Print Post  
thanks i don't know what do you mean by closing the solution is it about closing this post if that i don't know how but here is the file
  

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


Posts: 10
Joined: Jul 22nd, 2020
Re: vmicro can't find libaries in the lwip folders
Reply #17 - Jul 27th, 2020 at 9:31am
Print Post  
Hello, any updates?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: vmicro can't find libaries in the lwip folders
Reply #18 - Jul 27th, 2020 at 1:00pm
Print Post  
Hi

Sorry for the delay. 

The code examples you have provided are invalid. The verbose build outputs you have provided also show failed attempt to build the same invalid code. 

The error you are reporting is correct for the code you are trying to use.

I suggest providing a valid code example of something that compiles in the arduino ide but not visual micro. I also suggest providing a verbose output from the arduino ide build via "file>preferences>compile verbose"

Thanks
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint