delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/12/03/19:20:50

From: jkolen AT typhoon DOT coginst DOT uwf DOT edu (John F. Kolen)
Subject: help for template woes with g++
3 Dec 1997 19:20:50 -0800 :
Message-ID: <9712031721.ZM14602.cygnus.gnu-win32@typhoon.coginst.uwf.edu>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

Those of you who are struggling with linker errors caused by templates (such
as those found in STL) might like to know that -frepo works much better when
combined with -O3.  It turns out that repo stumbles on inlined methods declared
outside the class.  The -O3 forces the compiler to generate inline code,
otherwise the compiler _decides_ what to inline and to generate.  See g++ info
page for more details.

Also, if you use the String class, you should explicitly link with -lg++ as
well. Some critical data definitions reside there.

John

-- 
John F. Kolen				voice: (850)474-3075 
Assistant Professor			fax:   (850)474-3023
Dept. of Computer Science
University of West Florida
Pensacola, FL 32514
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019