I use Python too but have you looked here:
http://code.google.com/p/rdkit/wiki/GettingStartedInCPP_1
It suggests the following
g++ -o sample.exe sample.cpp -I$RDBASE/Code \
-L$RDBASE/lib -lChemReactions -lFileParsers -lSmilesParse -lDepictor \
-lSubstructMatch -lGraphMol -lDataStructs -lRDGeometryLib -lRDGeneral
-
Jean-Paul Ebejer
Early Stage Researcher
On 3 February 2012 10:12, Nicholas Firth <[email protected]> wrote:
> Hi All,
> This is inevitably going to be a silly question, as it's been some years
> since I've used C++ for anything that required a library. So I've managed
> to get RDKit working fine on Python (OSX 10.7.2) as far as I can tell it
> all works perfectly. Now I have to change over to C++, I'm trying to
> compile the simplest program that I can just to insure I've got all the
> paths and linking set up. The program is
>
> #include <iostream>
> #include "RDLog.h"
>
> int main(){
> return 0;
> }
>
> And then at command line I get:
> nfirth$ g++ reader.cpp -L /Users/nfirth/Code/RDKit/
> reader.cpp:10:19: error: RDLog.h: No such file or directory
>
> I assume that this is just me forgetting how to link correctly or set
> paths correctly but for the life of me I can't get google to give me the
> right answer!
> Thanks in advance.
> Best,
> Nick
>
>
> The Institute of Cancer Research: Royal Cancer Hospital, a charitable
> Company Limited by Guarantee, Registered in England under Company No.
> 534147 with its Registered Office at 123 Old Brompton Road, London SW7 3RP.
>
> This e-mail message is confidential and for use by the addressee only. If
> the message is received by anyone other than the addressee, please return
> the message to the sender by replying to it and then delete the message
> from your computer and network.
>
>
> ------------------------------------------------------------------------------
> Try before you buy = See our experts in action!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-dev2
> _______________________________________________
> Rdkit-discuss mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/rdkit-discuss
>
>
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Rdkit-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss