Re: python , Boost and straight (but complex) C code



Osiris wrote:

I have these pieces of C-code (NOT C++ !!) I want to call from Python.
I found Boost.
I have MS Visual Studio 2005 with C++.

is this the idea:
I write the following C source file:
============================
#include <iostream>
#include <stdafx.h>

namespace { // Avoid cluttering the global namespace.

iostream and namespaces are both most definitely C++ features, not C.

--
Erik Max Francis && max@xxxxxxxxxxx && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM, Y!M erikmaxfrancis
It's almost like / I didn't even have a choice
-- India Arie
.



Relevant Pages

  • Re: python , Boost and straight (but complex) C code
    ... I write the following C source file: ... namespace {// Avoid cluttering the global namespace. ... Boost should not complain... ... Not all C code can be compiled by a C++ compiler. ...
    (comp.lang.python)
  • Re: python , Boost and straight (but complex) C code
    ... I write the following C source file: ... namespace {// Avoid cluttering the global namespace. ... Boost should not complain... ... Not all C code can be compiled by a C++ compiler. ...
    (comp.lang.python)
  • Converting VC++ 6.0 executable code to .Net DLL
    ... environment (Visual Studio 2005). ... Anyhow, the environment generated a main class for me, shown below, as ... belong to any namespace, as is just a large collection of classes developed ... What would I need to do to export my C++ interfaces? ...
    (microsoft.public.dotnet.languages.vc)
  • Re: location of using, include, and namespaces statement
    ... > directive now apply to the client's source file, too, if he ever ... > And would it help or hurt to put the 'using' directives inside ... your'e quite right - if namespace pollution is a concern [I suppose it ... > the header when you're not looking. ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Error messages due to conversion from older ASP.Net
    ... C# and Visual Studio 5. ... holding me back from loading the website changes. ... Error 1 A namespace does not directly contain members such as fields or ... Error 2 Expected class, delegate, enum, interface, or struct ...line 28 ...
    (microsoft.public.dotnet.languages.csharp)