Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!mips!apple!agate!shelby!bloom-beacon!eru!luth!sunic!mcsun!ukc!stl!dsr From: dsr@stl.stc.co.uk (D.S. Riches) Newsgroups: comp.databases Subject: INGRES/SQL profiling Message-ID: <2900@stl.stc.co.uk> Date: 11 Apr 90 09:19:05 GMT Sender: news@stl.stc.co.uk Reply-To: "D.S. Riches" Organization: STC Technology Limited, London Road, Harlow, Essex, UK Lines: 31 We are using Version 5.? of INGRES and are using Embedded SQL. The problem I'm having is in trying to use the profiling flags for `cc` i.e. -pg or -p. I can compile the esql/c files to a `.o` file using the -pg flag but when I come to link together a number of `.o` files, which have all been compiled using the `-pg`, e.g. cc -pg frd.o esql.o -llibabf ... I get the following error : ld: symbol __DYNAMIC lookup failed If I create a relocatable esql/c file by using `ld -r` then I can perform the final link as long as I don't include the ingres libraries however since I have more than one relocatable esql/c file I get multiple defines. Has anyone come across this problem and if so what's the solution. Dave Riches PSS: dsr@stl.stc.co.uk ARPA: dsr%stl.stc.co.uk@earn-relay.ac.uk Smail: Systems Methods, (Dept. 607, T2 West), STC Technology Ltd., London Road, Harlow, Essex. CM17 9NA. England Phone: +44 (0)279-29531 x2496