th object file format used with gcc (mingw) is not the same as Borland and MSVC++ use. So you won't be able to link with them. One solution is to create a DLL instead of an object file, which you will be able to use in Delphi (using "stdcall" to declare your dll functions in Delphi).
Greetings,
Colin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i wanna use the link compiler directive in delphi ({$L filename}) with a mingw compiled object.
but i get an error:
[Error] obj.pas(27): Bad object file format: 'E:Projects820000MouseStatemouse.o'
delphi help says you can only link an Intel relocatable object file (.OBJ file), which i think MSVC++ makes.
does anyone know how to compile an Intel relocatable object file with mingw/gcc?
th object file format used with gcc (mingw) is not the same as Borland and MSVC++ use. So you won't be able to link with them. One solution is to create a DLL instead of an object file, which you will be able to use in Delphi (using "stdcall" to declare your dll functions in Delphi).
Greetings,
Colin
M$V!C++ .obj != standard object format. I think anon they are talking about coff format.
Kip
yeah.. Delphi only imports OMF objects.
i think mingw is making COFF objects, does anyone know if/how mingw can compile OMF objects or if you can convert COFF objects to OMF objects.
digital mars claims to have a util coff2omf that converts obj files but its not free.
ciao
daniel
I can't even if I use Dev-Pascal?