Bonjour
Pour un petit projet, je voudrais utiliser la librairie shlwapi.h mais lors de la compilation,j'ai un link error :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
  [Linker error] undefined reference to `_imp__PathIsDirectoryA@4'
j'utilise Dev Cpp 4.9.9.2

je vous joins mon petit code de test :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
#include<windows.h>
#include<iostream>
#include<shlwapi.h>
 
using namespace std;
 
int main(){
    char path[MAX_PATH] = "c:\\windows";
    if (PathIsDirectory(path)) cout << "OK " << endl;
    else cout << "KO" << endl;
    system("PAUSE");
    return 0;
}
surment un bete truc que je n'ai pas vu

si quelque a une idee ??????

Merci