MTL: Patch for mtl4-alpha-1-r6398, gcc 4.1.2

View: New views
2 Messages — Rating Filter:   Alert me  

MTL: Patch for mtl4-alpha-1-r6398, gcc 4.1.2

by Michael Smolsky-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm trying to compile mtl4-alpha-1-r6398.tar.gz using gcc 4.1.2
20070925 (Red Hat 4.1.2-27), and it fails on a bunch of files. Essentially, there're extra semicolons after definitions of some functions, which gcc doesn't like any more.

I've created a patch file, that I'm attaching. To apply the patch, go to mtl4 directory and execute

patch -p1 < /path/to/patch/file.txt

Thank you for supporting MTL,

Michael

--
Want an e-mail address like mine?
Get a free e-mail account today at www.mail.com!


diff -ru mtl4/boost/numeric/mtl/operation/conj.hpp mtl4-fixed/boost/numeric/mtl/operation/conj.hpp
--- mtl4/boost/numeric/mtl/operation/conj.hpp 2007-10-26 05:33:04.000000000 -0400
+++ mtl4-fixed/boost/numeric/mtl/operation/conj.hpp 2007-12-21 23:50:35.000000000 -0500
@@ -97,7 +97,7 @@
 inline conj(const Value& v)
 {
     return sfunctor::conj<Value, typename traits::algebraic_category<Value>::type>::apply(v);
-};
+}
 
 
 namespace sfunctor {
@@ -129,7 +129,7 @@
 inline typename sfunctor::real<Value>::result_type real(const Value& v)
 {
     return sfunctor::real<Value>::apply(v);
-};
+}
 
 
 namespace sfunctor {
@@ -163,7 +163,7 @@
 inline typename sfunctor::imag<Value>::result_type imag(const Value& v)
 {
     return sfunctor::imag<Value>::apply(v);
-};
+}
 
 
 } // namespace mtl
diff -ru mtl4/boost/numeric/mtl/operation/trans.hpp mtl4-fixed/boost/numeric/mtl/operation/trans.hpp
--- mtl4/boost/numeric/mtl/operation/trans.hpp 2007-10-26 05:33:04.000000000 -0400
+++ mtl4-fixed/boost/numeric/mtl/operation/trans.hpp 2007-12-21 23:50:51.000000000 -0500
@@ -49,7 +49,7 @@
 inline trans(const Value& v)
 {
     return sfunctor::trans<Value, typename traits::algebraic_category<Value>::type>::apply(v);
-};
+}
 
 
 } // namespace mtl

_______________________________________________
This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/

Re: MTL: Patch for mtl4-alpha-1-r6398, gcc 4.1.2

by Peter Gottschling :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Michael,

Thank you for the patch.  I'll apply it eventually.

I'm kind of surprised that a C++ compiler complains about this, esp. as I already tried gcc 4.1.2 on.  It's also surprising that I put semicolons after function definitions so often.

Cheers,

Peter

On Dec 22, 2007, at 6:13 AM, Michael Smolsky wrote:

Hi,

I'm trying to compile mtl4-alpha-1-r6398.tar.gz using gcc 4.1.2 
20070925 (Red Hat 4.1.2-27), and it fails on a bunch of files. Essentially, there're extra semicolons after definitions of some functions, which gcc doesn't like any more.

I've created a patch file, that I'm attaching. To apply the patch, go to mtl4 directory and execute

patch -p1 < /path/to/patch/file.txt

Thank you for supporting MTL,

Michael

-- 
Want an e-mail address like mine?
Get a free e-mail account today at www.mail.com!

<patch-alpha-1-r6398-remove-semicolons.txt>_______________________________________________

------------

Peter Gottschling

Research Associate

Open Systems Laboratory

Indiana University

135 Lindley Hall

Bloomington, IN 47405

Tel.: +1-812-855-3608   Fax: +1-812-856-0853

http://www.osl.iu.edu/~pgottsch




_______________________________________________
This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/