delorie.com/archives/browse.cgi | search |
From: | ppiselli AT el4 DOT cs DOT umass DOT edu (PAOLO PISELLI M Z) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Problems linking with '-pg' |
Date: | 31 Jul 1997 13:22:13 GMT |
Organization: | CMPSCI Department, UMass Amherst |
Lines: | 18 |
Message-ID: | <5rq3i5$h7t@kernighan.cs.umass.edu> |
References: | <5rimu2$scm AT kernighan DOT cs DOT umass DOT edu> |
NNTP-Posting-Host: | el4.cs.umass.edu |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
This error was found to be caused by redundant -pg switches. The -pg switch was duplicated in both RHIDE's Linker Options and Compiler Options, causing the linking step to execute the following command line: gcc -Wall -pg -o a.exe -pg object1.o object2.o ... PAOLO PISELLI M Z (ppiselli AT el4 DOT cs DOT umass DOT edu) wrote: : I am making my first attempts at profiling some game : code with gprof and had no trouble compiling all my source : code with the '-pg' compiler option. When I tried to link : with '-pg', I got an error saying that -pg was an unknown : option (it mentioned the file djgpp/bin/ld.exe). : I would greatly appreciate if anyone could email me any help. : I am running under WinNT on a pentium 200 with DJGPP version 2.01. : -Paolo
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |