Re: Integrating C with Qt
I don't understand your question - what's the problem simply calling your C-functions?
Re: Integrating C with Qt
Quote:
Originally Posted by
deepakn
Could anyone please tell me how I can integrate the C code with Qt?
Specifically, how can i call some functions from the C part in my Qt app?
This is nothing Qt specific. You can just call the functions of your C backend as needed. If your C code is compiled by a C compiler, and not a C++ compiler, you should wrap the function prototypes of the C code in
Code:
#ifdef __cplusplus
extern "C" {
#endif
/* ... function prototypes here */
#ifdef __cplusplus
}
#endif
to account for different name mangling of C and C++ compilers.