ggandda / simd-cxx

Automatically exported from code.google.com/p/simd-cxx
0 stars 0 forks source link

Compilation w/ g++ 4.1.2 #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Compile w/ g++ 4.1.2 (RedHat EL 5.3 out of the box)

What is the expected output? What do you see instead?
Expected clean compile. Instead I get a series of compiler errors in
assertion.cpp, invalid conversion from 'int' to 'int* (*)()' 

What version of the product are you using? On what operating system?
simd-cxx-v0.5.tar.bz2 
boost 1.40
g++ 4.1.2
RedHat Enterprise Linux v5.3

Please provide any additional information below.
Not at my computer now, but all three lines in assertion.cpp generate the
error. 

Original issue reported on code.google.com by swarf...@gmail.com on 23 Dec 2009 at 1:58

GoogleCodeExporter commented 8 years ago
The error I get is:

assertion.cpp: In constructor
‘dds::PreconditionViolation::PreconditionViolation(const std::string&, const
std::string&, int* (*)())’:
assertion.cpp:3: error: invalid conversion from ‘int’ to ‘int* (*)()’
assertion.cpp:3: error:   initializing argument 3 of 
‘dds::Exception::Exception(const
std::string&, const std::string&, int* (*)())’

repeated x3 - for the three instances of the DEFINE_EXCEPTION macro in 
assertion.cpp

I have a RHEL 5.3 vm with g++ 4.1.2, OpenSplice 4.3 which compiles.
I have a live system with RHEL 5.4 (not 5.3 as previously reported) and g++ 
.1.2 and
OpenSplice 4.3 which gives me this error. 

Original comment by swarf...@gmail.com on 29 Dec 2009 at 8:14

GoogleCodeExporter commented 8 years ago
Thanks for letting us know about this issue. We'll look into it and submit a 
fix into the main trunk ASAP.

Original comment by angelo.corsaro@gmail.com on 29 Dec 2009 at 11:24

GoogleCodeExporter commented 8 years ago
The problem is in the name of variable "errno". This is a macro actually. I 
correct
it in my code, but i am waiting for original patch. 

Original comment by galingru...@gmail.com on 15 Jan 2010 at 7:38

GoogleCodeExporter commented 8 years ago
This is not fixed as of SimD v0.6

Original comment by angelo.corsaro@gmail.com on 2 Mar 2010 at 3:38