Article View: gnu.g++.help
Article #582Problem with g++ and -g option.
From: Frederic Cirera
Date: Wed, 18 Nov 1992 15:28
Date: Wed, 18 Nov 1992 15:28
61 lines
2019 bytes
2019 bytes
Hy usenet friends.
I compile this program with gcc2.3.1 on i486 SVR4, ld produce this error
Any ideas or bug fix ?
thanks Fred.
# Makefile
#
DEBUG=-g -ggdb
x: x.o
/usr/local/bin/g++ $(DEBUG) -o x x.o
clean:
rm -f *.o x
x.o: x.C
/usr/local/bin/g++ $(DEBUG) -c x.C
// x.C
//
#include <stdio.h>
main()
{
printf("Hello world\n" );
}
$ make
/usr/local/bin/g++ -g -ggdb -c x.C
/usr/local/bin/g++ -g -ggdb -o x x.o
Undefined first referenced
symbol in file
.L_T51 x.o
ld: x: fatal error: Symbol referencing errors. No output written to x
*** Error code 1 (bu21)
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
| Frederic CIRERA | E-mail : fred@gna.axis-design.fr |
| Av de la republique | Home : 42 05 17 66 |
| 91374 Verrieres le buisson | Office : 69 20 45 05 |
| FRANCE. | |
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
--
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
| Frederic CIRERA | E-mail : fred@gna.axis-design.fr |
| Av de la republique | Home : 42 05 17 66 |
| 91374 Verrieres le buisson | Office : 69 20 45 05 |
Technical Details
Message-ID:
<1992Nov18.152858.21861@gna.axis-design.fr>Path:
arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!darwin.sura.net!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!julienas!corton!gna!fredShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!darwin.sura.net!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!julienas!corton!gna!fred From: fred@gna.axis-design.fr (Frederic Cirera) Newsgroups: gnu.g++.help Subject: Problem with g++ and -g option. Message-ID: <1992Nov18.152858.21861@gna.axis-design.fr> Date: 18 Nov 92 15:28:58 GMT Organization: GNA c/o Axis Design 119 rue de Flandre 75019 Paris Lines: 61