Hello everyone. I´m using Qt 4.2.2 and VisualStudio 2005.
My problem is I wanna make use of a Dll and I only get linking errors related to it.
I want to load the dll at compiling time, so I guess I don´t need to use QLibrary, am I right?
I have a header file with the name of the functions I can call.
Here it is the .h file (loc.h):
#ifndef LOC_H
#define LOC_H
#ifdef __cplusplus
extern "C" {
#endif
#include <windows.h>
#define LOC_ERR_FRAME_INCOMPL -1
#define LOC_ERR_LONG -2
#define LOC_ERR_CRC -3
typedef struct loc_position_t {
float x;
float y;
} loc_position_t;
int loc_getposition(loc_position_t *p);
int loc_ini(void);
int loc_end(void);
#ifdef __cplusplus
}
#endif
#endif //LOC_H
#ifndef LOC_H
#define LOC_H
#ifdef __cplusplus
extern "C" {
#endif
#include <windows.h>
#define LOC_ERR_FRAME_INCOMPL -1
#define LOC_ERR_LONG -2
#define LOC_ERR_CRC -3
typedef struct loc_position_t {
float x;
float y;
} loc_position_t;
int loc_getposition(loc_position_t *p);
int loc_ini(void);
int loc_end(void);
#ifdef __cplusplus
}
#endif
#endif //LOC_H
To copy to clipboard, switch view to plain text mode
I also include the dll file so you can see what it´s wrong.
I have used this code in Code::blocks without a problem, but now I wanna use it with Qt/VisualStudio and I get linking problems everytime I try to compile it.
Can anyone please help me?
Bookmarks