Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Boost Python and MS Visual Studio 7 - hit compiler limit

Reply
Thread Tools

Boost Python and MS Visual Studio 7 - hit compiler limit

 
 
Stephen Horne
Guest
Posts: n/a
 
      09-13-2003

I started making up a Python extension module to wrap a C++ library of
mine using Boost Python. Trouble is, the library has a number of
classes each of which has a lot of methods. I seem to have hit an
internal limit in the Visual C++ 7 compiler.

The output I get is...

"""
....found 2031 targets...
....updating 4 targets...
vc-C++
...\..\..\libs\python\my_project\bin\hello.pyd\vc7 \debug\runtime-link-dyna
mic\test.obj
test.cpp
E:\boost-1.30.2\boost\detail\ob_compressed_pair.hpp(36 : fatal error
C1204: co
mpiler limit : internal structure overflow
"""


I figure I have three obvious options...

1. Switch to using Pythons C API directly.
2. Change the way I wrap the library to reduce the number of
methods (most likely with extra parameters).
3. Use a different compiler.


Can anyone offer any suggestions beyond that? - options to increase
the VC++ internal structure sizes, for instance?

 
Reply With Quote
 
 
 
 
Stephen Horne
Guest
Posts: n/a
 
      09-13-2003

Sorry - the correct answer is RTFM, but I somehow missed the bit in
the Boost Python FAQ first time through. It's working fine now.

 
Reply With Quote
 
 
 
 
David Abrahams
Guest
Posts: n/a
 
      09-13-2003
Stephen Horne <$$$$$$$$$$$$$$$$$@$$$$$$$$$$$$$$$$$$$$.co.uk> writes:

> I started making up a Python extension module to wrap a C++ library of
> mine using Boost Python. Trouble is, the library has a number of
> classes each of which has a lot of methods. I seem to have hit an
> internal limit in the Visual C++ 7 compiler.
>
> The output I get is...
>
> """
> ...found 2031 targets...
> ...updating 4 targets...
> vc-C++
> ..\..\..\libs\python\my_project\bin\hello.pyd\vc7\ debug\runtime-link-dyna
> mic\test.obj
> test.cpp
> E:\boost-1.30.2\boost\detail\ob_compressed_pair.hpp(36 : fatal error
> C1204: co
> mpiler limit : internal structure overflow
> """
>
>
> I figure I have three obvious options...
>
> 1. Switch to using Pythons C API directly.
> 2. Change the way I wrap the library to reduce the number of
> methods (most likely with extra parameters).
> 3. Use a different compiler.
>
>
> Can anyone offer any suggestions beyond that? - options to increase
> the VC++ internal structure sizes, for instance?


Stephen, I suggest you post your Boost.Python questions to the
C++-sig: http://www.boost.org/more/mailing_lists.htm#cplussig

The Boost.Python FAQ addresses your question:
http://www.boost.org/libs/python/doc/v2/faq.html#c1204

HTH,
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Enabling browser back button for GridView Paging and Sorting in Ajax1.1 and 3.5 (using Visual Studio 2005/ Visual studio 2008) anil reddy ASP .Net 0 02-11-2009 04:22 PM
Is Visual Studio Team System and Visual Studio Foundation Server are same?. Thirumalai ASP .Net 0 05-22-2006 08:48 AM
Visual Studio NET Enterprise Architect 2002 and Visual Studio NET 2003 difference xman C++ 1 08-17-2005 04:13 PM
Re: Visual Studio NET Enterprise Architect 2002 and Visual Studio NET 2003 difference xman C++ 0 08-17-2005 04:00 PM
visual studio .net 2003 verses visual studio .net 2002 wh ASP .Net 2 01-16-2004 04:54 PM



Advertisments