In the OB docs, there's an example C++ program. Can you edit this so that
it reproduces the problem? Also, are you including babelconfig.h as follows?
-DOPENBABEL2_INCLUDE_DIR=C:\Tools\openbabel\trunk\include;C:\Tools\openbabel\trunk\windows-vc2008\build\include
-DOPENBABEL2_LIBRARIES=C:\Tools\openbabel\trunk\windows-vc2008\build\src\Release\openbabel-2.lib
- Noel
On 8 May 2012 23:18, David Lonie <david.lo...@kitware.com> wrote:
> On Tue, May 8, 2012 at 2:49 PM, Craig James <cja...@emolecules.com> wrote:
>>
>> On Tue, May 8, 2012 at 11:18 AM, David Lonie <david.lo...@kitware.com>wrote:
>>
>>> On Tue, May 8, 2012 at 2:05 PM, Craig James <cja...@emolecules.com>wrote:
>>>
>>>> On Tue, May 8, 2012 at 10:04 AM, David Lonie
>>>> <david.lo...@kitware.com>wrote:
>>>>
>>>>> Hi all,
>>>>>
>>>>> I'm setting up a new windows build environment using Windows 7 and
>>>>> MSVC 2010 C++ express, and my application is unable to find some of the
>>>>> symbols from openbabel, namely etab and obErrorLog:
>>>>>
>>>>
>>>> A while back we had this same problem on Ubuntu. It had something to
>>>> do with the fact that the .cpp file had no actual code in it so the linker
>>>> decided it wasn't necessary in shared libraries. Geoff probably knows
>>>> more, but here's an earlier discussion:
>>>>
>>>>
>>>> http://www.mail-archive.com/openbabel-devel@lists.sourceforge.net/msg00730.html
>>>>
>>>
>>> Hmm, do you recall which cpp file was at fault? Maybe we can add some
>>> dummy code to it to get the linker back to normal.
>>>
>>
>> It's the file that has the element symbol table, data.cpp. But I think
>> my original claim above was wrong: it's not that it has no code, but
>> something more subtle.
>>
>
> It may be a usage error on my part, since I compiled Avogadro just fine
> against the same openbabel. I'm not sure what the difference could be, AIUI
> CMake's target_link_libraries command should be all I need to setup the
> linker. If anyone has any ideas, I'll be very grateful!
>
> Dave
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> OpenBabel-Devel mailing list
> OpenBabel-Devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/openbabel-devel
>
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
OpenBabel-Devel mailing list
OpenBabel-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-devel