<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://vrl.cs.brown.edu/wiki/index.php?action=history&amp;feed=atom&amp;title=LDLIB_VER</id>
	<title>LDLIB VER - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://vrl.cs.brown.edu/wiki/index.php?action=history&amp;feed=atom&amp;title=LDLIB_VER"/>
	<link rel="alternate" type="text/html" href="http://vrl.cs.brown.edu/wiki/index.php?title=LDLIB_VER&amp;action=history"/>
	<updated>2026-04-20T12:44:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://vrl.cs.brown.edu/wiki/index.php?title=LDLIB_VER&amp;diff=4645&amp;oldid=prev</id>
		<title>Brad Berg: New page:  LDLIB_VER = &amp;lt;Library Name&amp;gt;  ...  Programs that link libraries need to build everything with the same compiler.  Libraries are generally built with all available compilers.  The &#039;&#039;&#039;L...</title>
		<link rel="alternate" type="text/html" href="http://vrl.cs.brown.edu/wiki/index.php?title=LDLIB_VER&amp;diff=4645&amp;oldid=prev"/>
		<updated>2010-11-19T16:44:18Z</updated>

		<summary type="html">&lt;p&gt;New page:  LDLIB_VER = &amp;lt;Library Name&amp;gt;  ...  Programs that link libraries need to build everything with the same compiler.  Libraries are generally built with all available compilers.  The &amp;#039;&amp;#039;&amp;#039;L...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt; LDLIB_VER = &amp;amp;lt;Library Name&amp;amp;gt;  ...&lt;br /&gt;
&lt;br /&gt;
Programs that link libraries need to build everything with the same compiler.  Libraries are generally built with all available compilers.  The &amp;#039;&amp;#039;&amp;#039;LDLIB_VER&amp;#039;&amp;#039;&amp;#039; variable links the library corresponding to the compiler used to build the program.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A setting of &amp;#039;&amp;#039;&amp;#039;&amp;amp;lt;Library&amp;amp;gt;&amp;#039;&amp;#039;&amp;#039; will link the library named:&lt;br /&gt;
&lt;br /&gt;
 $G/install_WIN32/lib/&amp;amp;lt;Library&amp;amp;gt;/&amp;amp;lt;Library&amp;amp;gt;-$G_COMPILER[_g|_p].lib&lt;br /&gt;
 $G/install_linux/lib/&amp;amp;lt;Library&amp;amp;gt;/lib&amp;amp;lt;Library&amp;amp;gt;-$G_COMPILER[_g|_p].a&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;_g&amp;#039;&amp;#039;&amp;#039; suffix is on the debug version and the &amp;#039;&amp;#039;&amp;#039;_p&amp;#039;&amp;#039;&amp;#039; suffix is the profiling version.  The program will also compile using the headers:&lt;br /&gt;
&lt;br /&gt;
 $G/install_linux/include/&amp;amp;lt;Library&amp;amp;gt;/*.h&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For example building a library named &amp;#039;&amp;#039;&amp;#039;draw&amp;#039;&amp;#039;&amp;#039; on Linux would create:&lt;br /&gt;
&lt;br /&gt;
 $GTO/install_linux/lib/draw/libdraw-gcc2.a&lt;br /&gt;
 $GTO/install_linux/lib/draw/libdraw-gcc2_g.a&lt;br /&gt;
 $GTO/install_linux/lib/draw/libdraw-gcc2_p.a&lt;br /&gt;
 $GTO/install_linux/lib/draw/libdraw-gcc3.a&lt;br /&gt;
 $GTO/install_linux/lib/draw/libdraw-gcc3_g.a&lt;br /&gt;
 $GTO/install_linux/lib/draw/libdraw-gcc3_p.a&lt;br /&gt;
 $GTO/install_linux/lib/draw/libdraw-gcc4.a&lt;br /&gt;
 $GTO/install_linux/lib/draw/libdraw-gcc4_g.a&lt;br /&gt;
 $GTO/install_linux/lib/draw/libdraw-gcc4_p.a&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If &amp;#039;&amp;#039;&amp;#039;LDLIB_VER&amp;#039;&amp;#039;&amp;#039; was set to &amp;#039;&amp;#039;&amp;#039;draw&amp;#039;&amp;#039;&amp;#039;, a debug version of a program compiled with gcc4 would link with:&lt;br /&gt;
&lt;br /&gt;
 $G/install_linux/lib/draw/libdraw-gcc4_g.a&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To access the headers from the source code you would code:&lt;br /&gt;
&lt;br /&gt;
 #include  &amp;lt;draw/drawStuff.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The header file accessed would be installed in:&lt;br /&gt;
&lt;br /&gt;
 $G/install_linux/include/draw/drawStuff.h&lt;/div&gt;</summary>
		<author><name>Brad Berg</name></author>
	</entry>
</feed>