Hi !

I am actually working on a project which enables connection to a datalogger Campbell.
Campbell provides a simplepb.dll to communicate with datalogger, and I would like to use it in my project.
You can download it here.
I put this dll and the header in a DLL directory located on C:

I changed the .pro file into:
Qt Code:
  1. INCLUDEPATH += C:/DLL
  2. LIBS += -LC:/DLL -lsimplepb -lcoralib3d
To copy to clipboard, switch view to plain text mode 

The header:
Qt Code:
  1. #ifndef FUNCTIONS_H
  2. #define FUNCTIONS_H
  3.  
  4. #include "simplepb.h"
  5.  
  6. void test();
  7.  
  8. #endif // FUNCTIONS_H
To copy to clipboard, switch view to plain text mode 

The .cpp:
Qt Code:
  1. #include "Functions.h"
  2.  
  3. void test()
  4. {
  5. OpenPort(1,9600); //Function of simplepb.dll
  6. }
To copy to clipboard, switch view to plain text mode 

After building with Mingw, I obtain every time the same error: ..\TestDll\Fonctions.cpp:5: erreur : undefined reference to `OpenPort@8'.

If someone has an idea to fix it !

TY