kzwkt / wnd-charm

Automatically exported from code.google.com/p/wnd-charm
0 stars 0 forks source link

Cannot compile #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1../configure
2.make

What is the expected output? What do you see instead?
There are compile errors

What version of the product are you using? On what operating system?
1.31.251 on ubuntu

Please provide any additional information below.:

make  all-am
make[1]: Entering directory 
`/home/srajaram/Work/Other_Software/wndchrm-1.31.251'
g++ -DHAVE_CONFIG_H -I.  -fPIC  -Wall -g -O2  -MT FeatureStatistics.o -MD -MP 
-MF .deps/FeatureStatistics.Tpo -c -o FeatureStatistics.o `test -f 
'statistics/FeatureStatistics.cpp' || echo './'`statistics/FeatureStatistics.cpp
statistics/FeatureStatistics.cpp:33:0: warning: ignoring #pragma hdrstop  
[-Wunknown-pragmas]
statistics/FeatureStatistics.cpp:284:0: warning: ignoring #pragma package  
[-Wunknown-pragmas]
statistics/FeatureStatistics.cpp: In function ‘int EulerNumber(ImageMatrix*, 
int)’:
statistics/FeatureStatistics.cpp:276:39: error: using temporary as lvalue 
[-fpermissive]
statistics/FeatureStatistics.cpp:277:42: error: using temporary as lvalue 
[-fpermissive]
make[1]: *** [FeatureStatistics.o] Error 1
make[1]: Leaving directory `/home/srajaram/Work/Other_Software/wndchrm-1.31.251'
make: *** [all] Error 2

Original issue reported on code.google.com by sat...@gmail.com on 23 Jan 2012 at 10:17

GoogleCodeExporter commented 9 years ago
I'm not able to reproduce this error. I'm using Ubuntu 10.04 LTS that's running 
within VirtualBox 4.1.8. I compiled wndchrm 1.32b.309 successfully, as well as 
the 1.31 release version. The compiler I used was "GNU g++ (Ubuntu 
4.4.3-4ubuntu5)." In addition wnd-chrm is still compiling nicely on all out 
CentOS Linux servers.

Can you submit more information about your compilation environment?

Original comment by christop...@nih.gov on 13 Feb 2012 at 8:55

GoogleCodeExporter commented 9 years ago
Hi,

Thanks for getting back to us.

I think we've figured out what is going wrong. We are using g++
version 4.6.1-9ubuntu3 on Oneiric which seems to be more stringent in its
checks. We got wnd-chrm to compile by adding the -fpermissive option to
g++.

In the makefile we now have a line
AM_CXXFLAGS = -Wall -g -O2 -fpermissive

Sorry for not posting this to the comment. Perhaps you could add this? Also
for future releases, perhaps you could consider changing the offending
lines to meet the g++ requirements.

Original comment by sat...@gmail.com on 13 Feb 2012 at 9:18

GoogleCodeExporter commented 9 years ago
Yup. Thanks for that. Will put this in the bugfix queue for the impending 1.32 
release.

Original comment by christop...@nih.gov on 13 Feb 2012 at 9:25

GoogleCodeExporter commented 9 years ago
Issue 36 has been merged into this issue.

Original comment by christop...@nih.gov on 13 Feb 2012 at 9:25

GoogleCodeExporter commented 9 years ago

Original comment by christop...@nih.gov on 13 Feb 2012 at 9:26

GoogleCodeExporter commented 9 years ago
This issue appears to be resolved in 1.50

Original comment by i...@nih.gov on 26 Jun 2013 at 2:42