Mixing C with Lazarus lazarus / 11-Options ---------------------------------------------------------------------- scazon · 2007-03-08 10:04 I use some low- level routines written in C. At the moment, I get them to link using e.g. "{$L ConvertADC.o}" in my Lazarus source. But I have to compile the C sources separately before running Lazarus build. Is there an easy way I can include these in the project such that gcc is invoked if the sources change? You'll gather from this that I'm a beginner at fpc and gcc, and I've tried RTFM, but there's AFLOTFM so please be patient. ---------------------------------------------------------------------- felipemdc · 2007-03-08 17:33 I think the answer is no. If you have a complex project to be compiled that requires calling 2 different compilers, I suggest that you create a Makefile, or a script to make building it easier. ---------------------------------------------------------------------- Almindor · 2007-03-09 23:18 You can try fiddling the "pre-compilation" command. So eg: make a makefile for the c stuff, and call it in the pre-compilation options from laz, whenever you press f9 it gets called befroe fpc.