Bugs item #3308500, was opened at 2011-05-27 20:01
Message generated for change (Tracker Item Submitted) made by dma_k
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=428740&aid=3308500&group_id=40728

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Installation/Building
Group: 2.3.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Dmitry Katsubo (dma_k)
Assigned to: Nobody/Anonymous (nobody)
Summary: Compilation on CygWin results problems with chemdrawcdx.cpp

Initial Comment:
When compiling OpenBabel 2.3.0 or 2.2.3 under win32 using CygWin the following 
problem occurs:

[ 51%] Building CXX object src/formats/CMakeFiles/chemdrawcdx.dir/chemdrawcdx.o
/src/openbabel-2.3.0/src/formats/chemdrawcdx.cpp: In function 'short unsigned 
int bswap_16(short unsigned int)':
/src/openbabel-2.3.0/src/formats/chemdrawcdx.cpp:28: error: redefinition of 
'short unsigned int bswap_16(short unsigned int)'
/usr/include/byteswap.h:19: error: 'short unsigned int bswap_16(short unsigned 
int)' previously defined here
/src/openbabel-2.3.0/src/formats/chemdrawcdx.cpp: In function 'unsigned int 
bswap_32(unsigned int)':
/src/openbabel-2.3.0/src/formats/chemdrawcdx.cpp:32: error: redefinition of 
'unsigned int bswap_32(unsigned int)'
/usr/include/byteswap.h:25: error: 'unsigned int bswap_32(unsigned int)' 
previously defined here
/src/openbabel-2.3.0/src/formats/chemdrawcdx.cpp: In function 'long long 
unsigned int bswap_64(long long unsigned int)':
/src/openbabel-2.3.0/src/formats/chemdrawcdx.cpp:36: error: redefinition of 
'long long unsigned int bswap_64(long long unsigned int)'
/usr/include/byteswap.h:31: error: 'long long unsigned int bswap_64(long long 
unsigned int)' previously defined here
make[2]: *** [src/formats/CMakeFiles/chemdrawcdx.dir/chemdrawcdx.o] Error 1
make[1]: *** [src/formats/CMakeFiles/chemdrawcdx.dir/all] Error 2

When the corresponding functions (bswap_16, bswap_32, bswap_64) are commented 
in chemdrawcdx.cpp, the compilation succeeds.

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=428740&aid=3308500&group_id=40728

------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
OpenBabel-Devel mailing list
OpenBabel-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-devel

Reply via email to