Dear OpenBabel users,
I have downloaded the lasted version source of Openbabel 2.4.1.
I have compiled, and the babel and openbabel works fine. I can convert the
CDX file format into sdf.
int count = conv.Convert();  // OK
The obgen and obprop programs works well on SDF files also.

But when I tried to use the obgen or obprop program using the same CDX
file, I cannot read any molecule, and I found the program terminates with
the mole empty.

char *filename = "z:/dimethylaminesimple.cdx";
ifstream ifs( filename );
OBMol mol;
mol.Clear();
conv.SetInFormat( "cdx" );
conv.Read( &mol, &ifs ); // fail
if( mol.Empty() ) break;

I have used the example CDX file from Cambridge site.
http://www.cambridgesoft.com/services/documentation/sdk/chemdraw/cdx/dimethylaminesimple.cdx

I have compiled the babel, obgen, obprop program on GCC/CentOS7 64bit and
Visualstudio2015/Windows10 64bit.

Thank you in advance.

Chong Hak Chae, Ph. D.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to