This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: freebsd & -frepo


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Firstly, -frepo must be used with -c, as it should say in the warning 
just before the undefined symbol. Secondly, the -frepo kludge isn't 
needed any more anyway! It just compiles as is.

Jonathan L.
Origin, 323 Cambridge Science Park,Cambridge,UK. Tel:+44 (1223) 
423355
 ---[ It is impossible to enjoy idling thoroughly unless one has ]---
 ------------[ plenty of work to do - Jerome K. Jerome ]-------------
Fight spam! http://spam.abuse.net/ These opinions are all my fault


- ----------
From: 	Jay Sachs
Sent: 	27 October 1997 13:52
To: 	egcs-bugs@cygnus.com
Subject: 	freebsd & -frepo


Ok, I give.  What's the magic incantation to get -frepo to work under
FreeBSD2.2? Any recent snapshot; the .rpo files are generated, but no
file gets recompiled and the link dies.

// y.cc
template <class T>
class C
{
public:
    void foo();
};

template <class T>
void C<T>::foo()
{
}

int main()
{
    C<int> c;
    c.foo();
    return 0;
}


compiled with
  % g++ -frepo y.cc
  % g++ y.o
gives an error to the effect of
  undefined symbaol C<int>::foo(void)

- -J
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBNFSs8IYLUv2rigzBEQKngQCguaLNc/tbA7Rsjqc/O4LDoC07WUMAmgKM
MIIiRc5DF7Akgh7N/NGwe+68
=KVXs
-----END PGP SIGNATURE-----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]