errors

Hi, Can a library or the lack of a correct library cause errors during the verify of a sketch?

Yes

If I wrote a sketch exactly like it was but added some libraries because of different components I added to the sketch, how can I determine whats causing the error? I am trying to build the Arduino wireless weather station. I changed the sensor DT22 to the BME280 because of more features.

how can I determine whats causing the error?

The compiler will pinpoint the errors for you.

What code, what error ?

One that I found on Github that uses that sensor. The error is "Errror compiling for board Arduino/genuino Mega or Mega 2560. #error No forward link or gateway feature activated etc.

Please feel free to provide details.
I know it's the holiday season, but guessing games are a little passé

how can I post the error.

how can I post the error.

The procedure is quite similar to the one you used to post your question, but it might be helpful to read the "How to use this forum" post.

jcann9960:
how can I post the error.

Copy it from the IDE and paste it here in code tags

Sorry it has taken so long. I tried posting only the error message. What I got was the whole sketch.
Trying to start over.

ode][/code]

Try using the "Copy error messages" button in the IDE and then paste the result here.

Steve

[/code[code]
Arduino: 1.8.8 (Windows 7), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

In file included from C:\Users\James\Documents\Arduino\weather_station_transmitter\weather_station_transmitter.ino:12:0:

C:\Users\James\Documents\Arduino\libraries\MySensors/MySensors.h:426:2: error: #error No forward link or gateway feature activated. This means nowhere to send messages! Pretty pointless.

 #error No forward link or gateway feature activated. This means nowhere to send messages! Pretty pointless.

  ^

exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

jcann9960:

 #error No forward link or gateway feature activated. This means nowhere to send messages! Pretty pointless.

^

exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.

That library is some framework for sending sensor data to the cloud I think. What do you actually
want to do?

Get rid of the errors so I can upload the sketch to the Arduino Mega board and run the weather station.

If we could see the code for MySensors.h, which is where the error is created, it might be easier to say something useful. But so far you've shown none of the code that fails to compile and I'm not good at blind guesswork.

Steve