Visual Studio Ide for Arduino
https://www.visualmicro.com/forums/YaBB.pl
Visual Micro >> Installation & Troubleshooting >> Errors in compile when using external libraries..
https://www.visualmicro.com/forums/YaBB.pl?num=1321276136

Message started by bostjan.nagode on Nov 14th, 2011 at 1:08pm

Title: Errors in compile when using external libraries..
Post by bostjan.nagode on Nov 14th, 2011 at 1:08pm
Dear!
Maybie you will find my problem strange (im not an  expert or guru in C++), but i am stuck (even with Google).. VS2008,with your latest addin, normal sketches (like samples etc) goes well, but when i want to #include lib file, it doesnt give me error in PDE, but in cpp file, that is found in different directory:

C:\Documents and Settings\nbostjan\Local Settings\Application Data\VMicro\Arduino\Builds\Tezak01\atmega328\Tezak01.cpp

PDE that is in edit is in
D:\moji dokumenti\Arduino\Tezak01\Tezak01.pde

i have included
#include "d:\moji dokumenti\Arduino\Tezak01\libraries\ArduinoEthernet\EthernetDHCP\EthernetDHCP.h",

But line in sketch like:

EthernetDHCP.begin(mac, 1);

produces me plenty of errors like:
Tezak01.cpp.o : In function `__static_initialization_and_destruction_0'
Tezak01.cpp.o : In function `loop'
Tezak01.cpp : undefined reference to `EthernetDHCP'
Tezak01.cpp : undefined reference to `EthernetDHCP'

Any explanation or suggestion ?? Thanks in advance, Bostjan

Title: Re: Errors in compile when using external libraries..
Post by Visual Micro on Nov 14th, 2011 at 3:04pm
please email your sketch and tell me where to get libs so I can test thanks

info at visualmicro.com

Title: Re: Errors in compile when using external libraries..
Post by Visual Micro on Nov 15th, 2011 at 10:54pm
okay i have your last email with a zip containing some sketches and libraries. I still do not have tezak01.pde.

but let me report on what i do have. I have 4 sketches:-

_12_Arduino_NTP.pde > _15_Arduino_NTP.pde

All 4 compile correctly with your libraries, _12 needed a 3v pro board the others i used mega2560. Error message for incorrect _12 board was correct:- missing ref to INTERNAL

so please send me tezak01.pde or paste the code from tezak01.pde into a reply to this message.

thanks

Title: Re: Errors in compile when using external libraries..
Post by bostjan.nagode on Nov 16th, 2011 at 4:28pm
It is ment to be running on UNO, with Ethernet W5100 shield and RTC addon (on analog 4&5). _15_Arduino_RTC.pde is the latest pde (still fuzzy and in development without proper comments), but it compiles in Arduino IDE but not in VS2008. I dont have Tezak01.pde anymore, it was just a test for VS2008.

Title: Re: Errors in compile when using external libraries..
Post by Visual Micro on Nov 16th, 2011 at 4:37pm
I compiled 15 in 2008 without a problem so I must assume that your config is wrong. Can you see the libraries on the user or core menu?

Title: Re: Errors in compile when using external libraries..
Post by Visual Micro on Nov 16th, 2011 at 4:47pm
This is result in Sketch Builder output window when compiling 15 on Uno

Compiling '_15_Arduino_RTC' for 'Arduino Uno'
Binary sketch size: 20296 bytes (of a 32256 byte maximum) (1.3431343 secs)

Can you please post the text from the ._15_Arduino_RTC.vsarduino.h that is automatically included in your project. Thanks


Title: Re: Errors in compile when using external libraries..
Post by bostjan.nagode on Nov 16th, 2011 at 5:25pm
Thanks to everyone, i have suceeded. I need to restart PC, but i am putting it always into hibernate (moving a lot). It works now.. But jus a question furthermore. To see libraries in Project>Add Arduino library>User, where to adjust that?

Title: Re: Errors in compile when using external libraries..
Post by Visual Micro on Nov 16th, 2011 at 5:38pm
I think it's vs internal problem and maybe we will make next version cleaner so avoid the problems:)

I think the devenv.exe process does not shutdown properly sometimes during first config.

Thanks for letting us know. I hope you enjoy

Title: Re: Errors in compile when using external libraries..
Post by Visual Micro on Nov 16th, 2011 at 5:40pm
sorry missed your question. if you have any menus missing then please follow this instruction to reset the interface

http://www.visualmicro.com/post/2011/10/01/How-to-reset-the-arduino-visual-studio-interface.aspx

Title: Re: Errors in compile when using external libraries..
Post by Visual Micro on Nov 17th, 2011 at 3:00pm
One more question. It is unclear if you have the "Core" libraries showing correctly? If you do then there is not a problem with the interface.

The "User" libraries are the ones that you have added to your arduino "sketch folder > Libraries" folder. In the Arduino IDE these are called "Contributed"

Visual Studio Ide for Arduino » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2019. All Rights Reserved.