C++ namespaces

Søren Hauberg soren at hauberg.org
Wed Nov 5 15:00:48 CST 2008


ons, 05 11 2008 kl. 15:31 -0500, skrev John W. Eaton:
> On  5-Nov-2008, Søren Hauberg wrote:
> | Will something like
> | 
> | namespace octave {
> | #include <octave/oct.h>
> | };
> | 
> | work for you? I'm no C++ expert, so I'm not sure of this will have
> | unwanted side-effects.
> 
> I don't think this will work because the Octave libraries would still
> be compiled without the namespace tag so linking would fail.

Yeah, I was afraid you smart guys would say something like that...
Then I guess you'll either have to change Octave or your other library
to have a namespace :-(

Søren



More information about the Help-octave mailing list