Never write a using-declaration before #including another header file!
using namespace GiNaC;
int main()
using namespace GiNaC;
int main()
#include <ctime>
#include <iostream>
#include <ctime>
#include <iostream>
using namespace GiNaC;
/*
using namespace GiNaC;
/*
// Yes, we are using CUBA (should be installed on the system!)
#include <cuba.h>
// Yes, we are using CUBA (should be installed on the system!)
#include <cuba.h>
+using namespace std;
+using namespace GiNaC;
+
/*
* Demonstrates the use of compile_ex with the CUBA library.
*
/*
* Demonstrates the use of compile_ex with the CUBA library.
*
#include <ctime>
#include <iostream>
#include <ctime>
#include <iostream>
using namespace GiNaC;
/*
using namespace GiNaC;
/*
#include <iostream>
#include <string>
#include <stdexcept>
#include <iostream>
#include <string>
#include <stdexcept>
using namespace GiNaC;
class mystring : public basic
using namespace GiNaC;
class mystring : public basic
@example
#include <fstream>
@example
#include <fstream>
using namespace GiNaC;
int main()
using namespace GiNaC;
int main()
@example
#include <iostream>
@example
#include <iostream>
using namespace GiNaC;
struct sprod_s @{
using namespace GiNaC;
struct sprod_s @{
#include <iostream>
#include <string>
#include <stdexcept>
#include <iostream>
#include <string>
#include <stdexcept>
using namespace GiNaC;
@end example
using namespace GiNaC;
@end example
#include <iostream>
#include <string>
#include <iostream>
#include <string>
#ifdef HAVE_READLINE_READLINE_H
extern "C" {
#include <readline/readline.h>
#ifdef HAVE_READLINE_READLINE_H
extern "C" {
#include <readline/readline.h>
#include <ginac/ginac.h>
#endif
#include <ginac/ginac.h>
#endif
-using namespace GiNaC;
-
+#define YYSTYPE GiNaC::ex
// lex functions/variables
extern int yyerror(const char *s);
// lex functions/variables
extern int yyerror(const char *s);
extern char **file_list;
// Table of all used symbols
extern char **file_list;
// Table of all used symbols
-typedef map<string, ex> sym_tab;
+typedef std::map<std::string, GiNaC::ex> sym_tab;
extern sym_tab syms;
// Type of symbols to generate (real or complex)
extern sym_tab syms;
// Type of symbols to generate (real or complex)
#include "ginsh.h"
#include "ginsh_parser.hpp"
#include "ginsh.h"
#include "ginsh_parser.hpp"
+using namespace std;
+using namespace GiNaC;
+
#define YY_INPUT(buf, result, max_size) (result = ginsh_input(buf, max_size))
// Table of all used symbols
#define YY_INPUT(buf, result, max_size) (result = ginsh_input(buf, max_size))
// Table of all used symbols
+using namespace std;
+using namespace GiNaC;
+
#define YYERROR_VERBOSE 1
#ifdef HAVE_LIBREADLINE
#define YYERROR_VERBOSE 1
#ifdef HAVE_LIBREADLINE