🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Frederic Cirera Wed, 18 Nov 1992 15:28
Problem with g++ and -g option.
#582
Author: Frederic Cirera
Date: Wed, 18 Nov 1992 15:28
61 lines
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                    |
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads