🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.bug
Article #2148

problems linking g++ 1.36.2 with gcc 1.36.91 object files

#2148
From: Gregg Whitcomb
Date: Tue, 09 Jan 1990 18:36
39 lines
1177 bytes
machine: vax/ultrix
gcc: 1.36.91
g++: 1.36.2

description: symbols defined in a .c and compiled with gcc are not
recognized properly during linking.

ic% more testfile2.cc
#include <stream.h>
extern int return2();

main()
{
   cout << return2() << "\n";
}
ic% more testfile1.cc
testfile1.cc: No such file or directory
ic% more testfile2.cc
#include <stream.h>
extern int return2();

main()
{
   cout << return2() << "\n";
}
ic% more testfile1.c
int return2()
{
   return 2;
}
ic% g++ -c testfile2.cc
ic% gcc -c testfile1.c
ic% g++ -o t testfile2.o testfile1.o
testfile2.o: Undefined symbol return2() referenced from text segment



-Gregg (whitcomb@ic.Berkeley.EDU)
Technical Details
Message-ID: <9001091836.AA22607@ic.Berkeley.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!wuarchive!uwm.edu!cs.utexas.edu!tut.cis.ohio-state.edu!IC.BERKELEY.EDU!whitcomb

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!wuarchive!uwm.edu!cs.utexas.edu!tut.cis.ohio-state.edu!IC.BERKELEY.EDU!whitcomb
From: whitcomb@IC.BERKELEY.EDU (Gregg Whitcomb)
Newsgroups: gnu.g++.bug
Subject: problems linking g++ 1.36.2 with gcc 1.36.91 object files
Message-ID: <9001091836.AA22607@ic.Berkeley.EDU>
Date: 9 Jan 90 18:36:37 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 39