Unable to set path with VS2022

Hi,

I am migrating a project from an Arduino UNO to an Arduino UNO 4 WIFI.

I am using Visual Micro with Visual Studio 2022.

The project was using IRLib-master, that does not compile with the WIFI model, so I am trying to use the latest IRLib2-master library.

I installed it from a ZIP file. It is installed in:

C:\Users\m1\Documents\Arduino\libraries\IRLib2-master\IRLib2

However, when I go to

vMicro -> Add Library -> User Installed

I only see IRLib-master.

And when I try to compile what I got from a sample:

// In C:\Users\m1\Documents\Arduino\libraries\IRLib2-master\IRLib2
#include <IRLibDecodeBase.h>
#include <IRLib_P02_Sony.h>
#include <IRLib_P09_GICable.h>
#include <IRLibCombo.h>
                                                                                                                 
#define PIN_RECV 8         // Old 4,  New 8
IRdecode myDecoder;   //create decoder
                                                                                                                                                                                                              
IRrecvPCI  myReceiver(PIN_RECV); //receiver on pin 3

I get:

 101:10: fatal error: IRLibDecodeBase.h: No such file or directory

I tried to add the "C:\Users\m1\Documents\Arduino\libraries\IRLib2-master\IRLib2" path in the C++ Additional include directories, that does not help.

I can add the full path directly into the #include statement, but all other includes called by it do not work either.

What am I missing?

Problem solved, all the librairies in IRLib2-master must be moved up

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.