DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

TDM C dll + MinGW

Hi,

 

I want to use the TDM C dll with the MinGW compiler.

Are there known problems?

How to use it with MinGW?

 

I have always error code -6204 ( An unexpected error occurred in the library) if I call a function from the dll.

 

Could there be another problem with code -6204?

 

Thanks...

0 Kudos
Message 1 of 6
(5,472 Views)

Hi c.bacher,

 

Tell me, what exactly is a "MinGW" compiler?  Is this an alternative C compiler like Borland's Code Warrior, or is this a different language like Delphi?  Is it a compiler that supports object classes or more of a scripting language?

 

Brad Turpin
DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 2 of 6
(5,445 Views)

MinGW is a port of the GNU Compiler Collection (GCC). GCC is used under linux and can be used with MinGW under Windows.

You need it if you want compile Qt project's on windows without VisualC compiler.

 

Does anyone know detailed informations about error -6204?

 

brgds

christoph

0 Kudos
Message 3 of 6
(5,430 Views)

hmm I am not the cygwin expert.

Can you post a C++ and makefile or an

exe compiled with Cygwin.

 

I have the environment but it would help me a lot if I just have to debug

ready code.

 

Andreas

0 Kudos
Message 4 of 6
(5,389 Views)

I tried to run the simple writeFile.o example and it works.

 

I attach the sample and makefile I used.

I only had to include

 

#include "mingw/_mingw.h"

 

and thats it.

So could you give a more detailed description when the error happens?

 

Did you make sure that the content of the bin folder was in your exe folder?

0 Kudos
Message 5 of 6
(5,379 Views)

Sorry for the late answer,

in release mode it works. In debug not!

That's was the solution....

0 Kudos
Message 6 of 6
(5,367 Views)