Hi Alan,

thanks for the help. Actually python was the problem. In Visual C++ you 
can set libraries in the code itself with #pragma directives. Python 
sets in its header files to link to the python24_d.lib if _DEBUG is 
defined. If I #undef it just before I include Python.h it compiles and 
works.

I still have to rename _plplotcmodule.dll to _plplotc.dll and it must be 
in the same directory as the python script, it doesn't work if the dll 
is only in the PATH.

So, I either have to find where we get the python24_d.lib or have to 
hack the cmake files to not set _DEBUG for the Visual C++ case.

Thanks,
Werner


Alan W. Irwin wrote:
> On 2006-11-25 22:47+0100 Werner Smekal wrote:
> 
>> I searched the whole plplot tree where we would set python24_d.lib, but I 
>> couldn't find anything like that.
> 
> We set PYTHON_LIBRARIES in cmake/modules/python.cmake, and I am virtually
> positive that is how python24_d.lib is found.  If cmake did not find a
> python library, then it would have disabled python completely. To build the
> two python interfaces on windows you need to link to PYTHON_LIBRARIES.  (See
> /bindings/python/CMakeLists.txt.) So I suspect the real question is why
> python24_d.lib is not accessible to the linker on bare windows even though
> cmake found it.
> 
> Hope that background information helps, and thanks very much for your
> continued windows/python efforts.
> 
> Alan
> __________________________
> Alan W. Irwin
> 
> Astronomical research affiliation with Department of Physics and Astronomy,
> University of Victoria (astrowww.phys.uvic.ca).
> 
> Programming affiliations with the FreeEOS equation-of-state implementation
> for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
> package (plplot.org); the Yorick front-end to PLplot (yplot.sf.net); the
> Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project
> (lbproject.sf.net).
> __________________________
> 
> Linux-powered Science
> __________________________
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Plplot-devel mailing list
> Plplot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/plplot-devel


-- 
Dipl. Ing. Werner Smekal
Institut fuer Allgemeine Physik
Technische Universitaet Wien
Wiedner Hauptstr 8-10
A-1040 Wien
Austria

email: [EMAIL PROTECTED]
web:   http://www.iap.tuwien.ac.at/~smekal
phone: +43-(0)1-58801-13463 (office)
        +43-(0)1-58801-13469 (laboratory)
fax:   +43-(0)1-58801-13499

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to