[Anjuta-list] How do I configure Anjuta....



How do I configure Anjuta to get round the following problem?

Ubuntu 8.10, Anjuta 2:2.24.1-0ubuntu1, libsigc++ 2.0.18-2.

I'm trying to compile the sigc sample program 'hello-world.cc' which
is shown below.

When I compile from the command line it compiles fine:
 g++ -o foo anjuta-hello-world/src/main.cc `pkg-config --libs --cflags
sigc++-2.0`

When I compile it through Anjuta I get the following error:
error: sigc++/sigc++.h: No such file or directory

It seems obvious that I must make Anjuta 'aware' of sigc++ somehow,
but the way to do it escapes me, even though I've delved through the
menus and documentation.

Cheers,

Cliff

/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */

/* Copyright 2003, The libsigc++ Development Team
 *
 *  Assigned to the public domain.  Use as you wish without
 *  restriction.
 */

#include <iostream>
#include <string>

#include <sigc++/sigc++.h>

SIGC_USING_STD(cout)
SIGC_USING_STD(endl)
SIGC_USING_STD(string)

void on_print(const std::string& str)
{
  std::cout << str;
}

int main()
{
  sigc::signal<void, const std::string&> signal_print;

  signal_print.connect( sigc::ptr_fun(&on_print) );

  signal_print.emit("hello world\n");

  return 0;
}




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]