Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.python
Re: [Python-Dev] Question for you
Daniel Fetchinson
2/23/2010 10:58:00 PM
>> Hello, Dave;
>>
>> My name is Craig Connor and I am a senior s/w developer at Northrop
>> Grumman.
>>
>> I have a question for you. I have installed* Boost* (via the
>> Installer), and stored it into my
>>
>> C Drive inside a dir called:
>>
>> * C:\boost_1_42*
>>
>> I also installed the* Boost Jam* into a directory called:
>>
>> * C:\boost-jam-3.1.17*
>>
>> I am using 2 separate compilers in my* Win OS XP (SP3)*
>>
>> and I would like to be able to use the Python module of Boost
>>
>> in order to embed Python.h into my C++ compiler.
>>
>> The C++ compilers that I have are:
>>
>> o* Dev-cpp*, and
>>
>> o* Visual C++.net* (of* MS Visual Studio.Net 2008*).
>>
>> Problem:
>>
>> When I compile a simple program, I keep getting the error:
>> "*pyconfig.h: No such file or directory*".
>>
>> The program I am trying to start with is (below):
>>
>> *#include <iostream>*
>>
>> *#include<boost/any.hpp>*
>>
>> *#include<boost/python.hpp>*
>>
>> *using namespace std;*
>>
>> *int main( )*
>>
>> *{*
>>
>> * cout << "Hello, Boost World!!" << endl;*
>>
>> * boost::any a(5);*
>>
>> * a = 7.67;*
>>
>> * std::cout<<boost::any_cast<double>(a)<<std::endl;*
>>
>> * *
>>
>> * system( "PAUSE" );*
>>
>> * return 0;*
>>
>> *}*
>>
>>
>> Also:
>>
>> I did set up my environmental config to go to the Boost dir.
>>
>> Question:
>>
>> Do you know what am I doing wrong?
>>
>> Regards,
>>
>> Craig Connor
>>
>> 720.622.2209
>>
> Hello Connor,
>
> I think you have the wrong email address - this is Python-dev, an email
> list for the development *of* Python.
>
> All the best,
>
> Michael Foord
[redirecting to python-list from python-dev]
And the fact that you are a "senior s/w developer" at Northrop Grumman
surely doesn't sound like good advertisement for said firm.
Cheers,
Daniel
--
Psss, psss, put it down! -
http://www.cafepress.com...
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: [Python-Dev] Question for you
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password