|< < 24 > >|

Postgres C API

Here is the code for this example.

Here is the Makefile:
OBJECTS = main.o default: libpqexample .c.o: gcc -I/usr/include/postgresql -Wall -Wno-unused-function -c $< -o $@ libpqexample: $(OBJECTS) gcc -L/usr/lib/x86_64-linux-gnu -Wall -Wno-unused-function $(OBJECTS) -lpq -o libpqexample clean: rm -f $(OBJECTS) libpqexample

|< < 24 > >|