Agreed. One thing to watch out for when using mingw with NI-DAQmx: GCC doesn't support Microsoft's __int64 type natively. Make sure to include a C library header (like stdio.h) so that __int64 gets defined before you include NIDAQmx.h.
I am trying to evaluate and use the LabVIEW c-code Generator with Qt Creator 2.3.1, Qt 4.7.4. I exported a very simple VI that implements y = m * x + b. I am adding the source to my project in accordance with (http://zone.ni.com/reference/en-XX/help/373144B-01/lvcgenhelp/cgen_include_gen_code_ext_apps/) but cannot get the code to compile. I attached my exported code - anything you can help me out with would be great! Ideally, I would like to get this to work in a basic command line app to show that it will compile and run. I was doing this as an example main.cpp:
int main(int argc, char *argv)
QCoreApplication a(argc, argv);
std::cout << "y = " << Evaluateline(1.11, 260, 200);
This thread is about using NI-DAQmx with mingw, so I was going to suggest that you start a new thread in a LabVIEW-related forum, but I see you already did that: http://forums.ni.com/t5/LabVIEW-Embedded/Using-LV-C-generator-with-Qt/m-p/1923189/highlight/true
Also, please post the exact text of the compilation errors in the other thread. The error messages are important, and you're unlikely to get much help without posting them.
I posted to your thread as a bit of a desparation move to see if you had ever successfully used c-generated code in Qt or knew anyone who had gotten it to work. I will post some compiler errors with the other thread.