LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I use MinGW compiler for CIN ?

Hi,

I would like to know if I can use MinGW compiler, which is a windows port of
the gcc (www.mingw.org), to compile CIN for Labview ?

I actually use Dev-C++ (www.bloodshed.net) which uses this MinGW compiler.

Does anybody has experience with this compiler/Labview or do I have to use
MS VC++ ?

Thank you,

Chang-Kwon Kang
0 Kudos
Message 1 of 4
(3,776 Views)
Check this "External Code for LabVIEW - CIN / DLL - Starting Point" [http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/a6705fec7ea42300862567b70054206e?OpenDocument]
Hope this helps.
0 Kudos
Message 2 of 4
(3,776 Views)
That does not seem to be the case. The header files ("platdefines.h") explicitly check for known compiler architectures and stops if the compiler is not known.
MinGW/gcc on win32 is not among the supported options (too bad b.t.w).

/jarek
0 Kudos
Message 3 of 4
(3,776 Views)

This is what I used to compile DLLs for Labview using MinGW.

 

#ifdef __MINGW32__
    #undef WIN32
    #undef _WIN32
    #undef __WIN32__
    #define linux 1
#endif
#include "platdefines.h"
#include "extcode.h"
#include "fundtypes.h"
#ifdef __MINGW32__
    #undef linux
    #define WIN32 1
    #define _WIN32 1
    #define __WIN32__ 1
#endif

 

This way I did not need to modify the platdefines.h header file. But Still make it choose the correct compiler GCC and architecture (you may want to verify it chooses the correct architecture on your machine).

 

Note I'm currently using Labview7.1 and have not tired this on any other versions.

 

-Pev

 

Message 4 of 4
(3,228 Views)