Error compiling for board Arduino/Genuino Mega or Mega 2560.

Hello, this is my very first post so excuse me if i don't know the rules to posting things right.

Anyway, i'm trying to use a 3 axis magnetic sensor, the HMC5883L. In my code i had to include Wire.h library, and while compiling i get an error message. I tried everything but i couldn't solve it.
Here is the error message:

Arduino: 1.8.2 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

In file included from C:\Users\CompuTOP\Downloads\HMC5883L\HMC5883L.ino:1:0:

C:\Users\CompuTOP\Documents\Arduino\libraries\HMC5883L/HMC5883L.h:28:26: fatal error: ../Wire/Wire.h: No such file or directory

#include "../Wire/Wire.h"

^

compilation terminated.

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.

Please any help would be appreciated.
I attached the code i'm using to make things easier for anyone trying to help :slight_smile:

HMC5883L.ino (1.85 KB)

The problem is a poorly written library. The solution is simple:

Open C:\Users\CompuTOP\Documents\Arduino\libraries\HMC5883L/HMC5883L.h in a text editor

Change the line:

#include "../Wire/Wire.h"

to:

#include <Wire.h>

Save the file.