Rather than subclass have you considered attached GenericData of some sort?

- Noel

On 23 January 2013 18:58, Dhroso, Andi (MU-Student)
<andi.dhr...@mail.missouri.edu> wrote:
> Hi everyone,
>     I have an application where I need to add additional information to
> OBAtom, and OBBond so i decided to subclass them. Because I subclassed
> ABAtom, and OBBond, then I have to subclass OBMol to be able to create
> atoms/bonds of the newer version.
>
> The problem i am running into is linking when i compile it. When I build
> from the command line everything works, but when I build from Xcode, for
> some reason it's having issues linking.
> This is only an issue when I implement the constructor in the cpp file, but
> it builds fine when I implement them inside the class.
>
> I've been googling and searched the forums but haven't been able to find
> anything. Any help is greatly appreciated.
>
> The exact error is:
> Undefined symbols for architecture x86_64:
>
> "OpenBabel::OBMol::DoTransformations(std::__1::map<std::__1::basic_string<char,
> std::__1::char_traits<char>, std::__1::allocator<char> >,
> std::__1::basic_string<char, std::__1::char_traits<char>,
> std::__1::allocator<char> >, std::__1::less<std::__1::basic_string<char,
> std::__1::char_traits<char>, std::__1::allocator<char> > >,
> std::__1::allocator<std::__1::pair<std::__1::basic_string<char,
> std::__1::char_traits<char>, std::__1::allocator<char> > const,
> std::__1::basic_string<char, std::__1::char_traits<char>,
> std::__1::allocator<char> > > > > const*, OpenBabel::OBConversion*)",
> referenced from:
>       vtable for Molecule in main.o
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
>
>
> -Andi
> Ps: Sorry I didn't include the error message on the first post
>
>
> -
> Andi Dhroso, PhD Student
>
> University of Missouri
> Informatics Institute and
> Department of Computer Science
> 246 Engineering Building West
> Columbia, MO 65211
> phone: 573.823.0129
> e-mail: andi.dhr...@mail.missouri.edu
>
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnnow-d2d
> _______________________________________________
> OpenBabel-Devel mailing list
> OpenBabel-Devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/openbabel-devel
>

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
OpenBabel-Devel mailing list
OpenBabel-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-devel

Reply via email to