Is there a way to compile C code from the Delphi IDE?
I would like to use some C code as part of a Delphi project (and would prefer not to put it in a DLL). So, in the Delphi IDE, can I compile C code? Perhaps I can use a keyword to indicate the beginning of the code insert (like ASM
does)? Or put the C code in a separate unit - but how would I invoke it from my Delphi code?
If it can be done, how do I go about it? Thanks ...
[Update] Although it sounds like it can be done with the Free Bolrand Command Line C++ Compiler I decided in the end to put the C code into a DLL and statically link that. I guess that either solution is acceptable )?)