Overview
Features
Download
Documentation
Community
Add-Ons & Services

Poco::Data::Keywords is not a namespace ???

Please post support and help requests here.

Poco::Data::Keywords is not a namespace ???

Postby dsa » 29 Jan 2013, 18:32

Hello,

i have the following error, when compiling a Project with Poco 1.5.1

error: 'Keywords' is not a namespace-name

The Code is like following :

using namespace Poco::Data;
using namespace Poco::Data::Keywords;

Can you please tell me where my failure is.
Have i perhaps do something special by compiling the Poco Library ?


Thanks
dsa
 
Posts: 4
Joined: 29 Jan 2013, 18:23

Re: Poco::Data::Keywords is not a namespace ???

Postby alex » 29 Jan 2013, 21:43

Did you include any headers? If so, which ones?
alex
 
Posts: 1121
Joined: 11 Jul 2006, 16:27
Location: United_States

Re: Poco::Data::Keywords is not a namespace ???

Postby dsa » 29 Jan 2013, 22:17

hi,

there are following headers included:

#include <Poco/Data/Session.h>
#include <Poco/Runnable.h>
#include <Poco/Thread.h>
#include <Poco/ThreadLocal.h>
#include <Poco/Types.h>
#include <Poco/Data/Binding.h>
dsa
 
Posts: 4
Joined: 29 Jan 2013, 18:23

Re: Poco::Data::Keywords is not a namespace ???

Postby alex » 30 Jan 2013, 04:20

1.5.x Binding.h has Keywords namespace. I can't reproduce your problem, this compiles fine for me:
Code: Select all
#include <Poco/Data/Session.h>
#include <Poco/Runnable.h>
#include <Poco/Thread.h>
#include <Poco/ThreadLocal.h>
#include <Poco/Types.h>
#include <Poco/Data/Binding.h>

using namespace Poco::Data;
using namespace Poco::Data::Keywords;

int main()
{
   return 0;
}

Most likely, you are including an old (pre-1.5.x) header that has no Poco::Data::Keywords namespace. Check your include search path.
alex
 
Posts: 1121
Joined: 11 Jul 2006, 16:27
Location: United_States

Re: Poco::Data::Keywords is not a namespace ???

Postby dsa » 13 Feb 2013, 12:25

hey, sorry for the late answer.

yes you were right, i was including some old header.

thanks
dsa
 
Posts: 4
Joined: 29 Jan 2013, 18:23


Return to Support

Who is online

Users browsing this forum: No registered users and 2 guests

cron