Hi Group,
I've made a statistic module for our framework, and have put it in a
namespace called stat (which resides in a namespace called dao)
My problem is that now the compiler thinks that it is the struct called stat
from wchar.h that I'm refering to even though I've written
dao::stat::stat _base
I have included the stat_base.h header and have checked for using
statements, but nothing seems to work.
#include "dao/stat/stat_base.h"
namespace dao
{
[ ....]
void attach(dao::sta t::stat_base& stat_client) <--- compiler barfs
{
stat_client.att ach(this->impl_ptr());
}
}
I'm using visual C++ 2005 Express
Does anyone know what might be the problem and the solution?
/Hansen 6 1773
Hansen wrote:
Hi Group,
I've made a statistic module for our framework, and have put it in a
namespace called stat (which resides in a namespace called dao)
My problem is that now the compiler thinks that it is the struct called stat
from wchar.h that I'm refering to even though I've written
dao::stat::stat _base
I have included the stat_base.h header and have checked for using
statements, but nothing seems to work.
#include "dao/stat/stat_base.h"
namespace dao
{
[ ....]
void attach(dao::sta t::stat_base& stat_client) <--- compiler barfs
{
stat_client.att ach(this->impl_ptr());
}
}
I'm using visual C++ 2005 Express
Does anyone know what might be the problem and the solution?
/Hansen
Post a complete compilable test code that demonstrates your problem, you
can check it against dinku or comeau to test it out.
"Fei Liu" <fe****@aepnetw orks.comwrote in message
news:et******** **@aioe.org...
Hansen wrote:
>Hi Group,
I've made a statistic module for our framework, and have put it in a namespace called stat (which resides in a namespace called dao) My problem is that now the compiler thinks that it is the struct called stat from wchar.h that I'm refering to even though I've written dao::stat::sta t_base
I have included the stat_base.h header and have checked for using statements, but nothing seems to work.
#include "dao/stat/stat_base.h" namespace dao { [ ....] void attach(dao::sta t::stat_base& stat_client) <--- compiler barfs { stat_client.att ach(this->impl_ptr()); } }
I'm using visual C++ 2005 Express
Does anyone know what might be the problem and the solution?
/Hansen
Post a complete compilable test code that demonstrates your problem, you
can check it against dinku or comeau to test it out.
The code base is very large and complex - posting it here doesn't seem as an
option.
I've tested something else though. If I change the name of my namespace to
e.g. statistic it still isn't able to find it.
I'm pusled by this, since I have included my header file with the namespace
as posted above, and therefore thought it would be accesable.
/Hansen
On 20 Mar, 14:39, "Hansen" <bluesb...@-remove-this-hotmail.comwrot e:
"Fei Liu" <fei...@aepnetw orks.comwrote in message
news:et******** **@aioe.org...
Hansen wrote:
Hi Group,
I've made a statistic module for our framework, and have put it in a
namespace called stat (which resides in a namespace called dao)
My problem is that now the compiler thinks that it is the struct called
stat from wchar.h that I'm refering to even though I've written
dao::stat::stat _base
I have included the stat_base.h header and have checked for using
statements, but nothing seems to work.
#include "dao/stat/stat_base.h"
namespace dao
{
[ ....]
void attach(dao::sta t::stat_base& stat_client) <--- compiler barfs
{
stat_client.att ach(this->impl_ptr());
}
}
I'm using visual C++ 2005 Express
Does anyone know what might be the problem and the solution?
Post a complete compilable test code that demonstrates your problem, you
can check it against dinku or comeau to test it out.
The code base is very large and complex - posting it here doesn't seem as an
option.
Not the whole code base, just a minimal but complete program that
demonstrates your problem and nothing else, as per the FAQ guidelines: http://www.parashift.com/c++-faq-lit...t.html#faq-5.8
See Thomas Tutone's post here for how and why http://groups.google.co.uk/group/com...0bb7ea8a166a57
Gavin Deane
Hansen <bluesboys@-remove-this-hotmail.comwrot e:
Hi Group,
I've made a statistic module for our framework, and have put it in a
namespace called stat (which resides in a namespace called dao)
My problem is that now the compiler thinks that it is the struct called stat
from wchar.h that I'm refering to even though I've written
dao::stat::stat _base
I have included the stat_base.h header and have checked for using
statements, but nothing seems to work.
#include "dao/stat/stat_base.h"
namespace dao
{
[ ....]
void attach(dao::sta t::stat_base& stat_client) <--- compiler barfs
{
stat_client.att ach(this->impl_ptr());
}
}
I'm using visual C++ 2005 Express
Does anyone know what might be the problem and the solution?
[OT] Check your setting for "Treat wchar_t as a native type": http://msdn2.microsoft.com/en-us/library/dh8che7s.aspx
On Visual Studio .NET 2003, it defaulted to "off", but from what I see
they switched it in 2005, but it wouldn't hurt to check it anyway.
--
Marcus Kwok
Replace 'invalid' with 'net' to reply
On Mar 20, 8:20 am, "Hansen" <bluesb...@-remove-this-hotmail.com>
wrote:
Hi Group,
I've made a statistic module for our framework, and have put it in a
namespace called stat (which resides in a namespace called dao)
My problem is that now the compiler thinks that it is the struct called stat
from wchar.h that I'm refering to even though I've written
dao::stat::stat _base
I have included the stat_base.h header and have checked for using
statements, but nothing seems to work.
#include "dao/stat/stat_base.h"
namespace dao
{
[ ....]
void attach(dao::sta t::stat_base& stat_client) <--- compiler barfs
I might be wrong here, but since you are already in namespace dao,
won't the compiler look for stat_base in dao::dao::stat? Perhaps you
could fix it with:
void attach(::dao::s tat::stat_base& stat_client)
^^---give a fully qualified name.
-matt
"Matteo" <ma****@ncsa.ui uc.eduwrote in message
news:11******** **************@ e65g2000hsc.goo glegroups.com.. .
On Mar 20, 8:20 am, "Hansen" <bluesb...@-remove-this-hotmail.com>
wrote:
>Hi Group,
I've made a statistic module for our framework, and have put it in a namespace called stat (which resides in a namespace called dao) My problem is that now the compiler thinks that it is the struct called stat from wchar.h that I'm refering to even though I've written dao::stat::sta t_base
I have included the stat_base.h header and have checked for using statements, but nothing seems to work.
#include "dao/stat/stat_base.h" namespace dao { [ ....] void attach(dao::sta t::stat_base& stat_client) <--- compiler barfs
I might be wrong here, but since you are already in namespace dao,
won't the compiler look for stat_base in dao::dao::stat? Perhaps you
could fix it with:
void attach(::dao::s tat::stat_base& stat_client)
^^---give a fully qualified name.
I found out the problem was caused by cyclic including. Having terminated
the circle everything works fine.
/Hansen This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Steven T. Hatton |
last post by:
I found the following two statements in the file linked below:
struct stat st;
stat(fileName.c_str(), &st);
http://websvn.kde.org/branches/work/kdevelop4-parser/main.cpp?rev=420247&view=markup
This is from /usr/include/sys/stat.h which I'm pretty sure is what #include
<sys/stat.h> is pulling in. I plain and simply do not understand what the
above two lines of code do. Can someone please explain?
|
by: Nuno Esculcas |
last post by:
Hello,
I'm a programer of C++ that recently move to C# and i now have some
simple problems, like how to fill the following variable:
System.Drawing.Imaging.EncoderParameters encoderParameters;
For example in C++ i do like this:
EncoderParameters encoderParameters;
|
by: David Bear |
last post by:
I'm trying to use os.chmod and am refered to the stat module.
Is there are explanation of:
* S_ISUID
* S_ISGID
* S_ENFMT
* S_ISVTX
* S_IREAD
* S_IWRITE
* S_IEXEC
|
by: Michael Glassford |
last post by:
The Python 2.5 News at
http://www.python.org/download/releases/2.5/NEWS.txt states that Python
2.5 was changed to "Use Win32 API to implement os.stat/fstat. As a
result, subsecond timestamps are reported, the limit on path name
lengths is removed, and stat reports WindowsError now (instead of OSError)."
Although not mentioned in the Python 2.5 News, apparently there was a
similar change on Mac that I'm having some problems with. On the...
|
by: Sheldon |
last post by:
Good day Everyone,
I am a still very new at learning C and I have thrown myself in the
deep end. I started with a simple program and kept widening the scope.
This has taught me many things about C and some, I must admit, have not
really sunk in yet. Still, I push on. Now I am taken a library of C
programs that were designed to read HDF files. I work on a Unix server
and in Mandrake10. The program below is most likely broken but I cannot...
| |
by: jmalone |
last post by:
I have a python script that I need to freeze on AIX 5.1 (customer has
AIX and does not want to install Python). The python script is pretty
simple (the only things it imports are sys and socket).
The README file in the Tools/freeze directory of the Python-2.4.4
distribution says the following (and many other things):
Previous versions of Freeze used a pretty simple-minded algorithm to
|
by: Joe Salmeri |
last post by:
I just upgraded from Python 2.4.2 to Python 2.5.1 and have found some
unexpected behavior that appears to be a bug in the os.stat module.
My OS is Windows XP SP2 + all updates.
I have several programs that have worked flawlessly on all previous Python
versions for years and they are now producing incorrect results in the code
that uses os.stat.
Searching through the 2.5.1 release notes I found the following:
|
by: patrickdepinguin |
last post by:
Hi,
I use zlib to write data structures to a compressed file, using the
gzwrite function. Afterwards I read the data back with gzread. I notice
that this works well when the data written is not that much, but when
there is more data to write, after a while I get data errors when
reading back the data.
Error in main: couldn't read stat
zlib error -3: test512-20070531-18h10m02.stat.gz: data error
|
by: Deniz Dogan |
last post by:
Hello.
I have a question regarding the st_mode field of the "stat" struct in
sys/stat.h. I'd like to know how to use the S_IRWXU, S_IRWXG and
S_IRWXO flags to mask the mode_t value into human readable form such
as 755, 644, etc. Currently I do something similar to this:
usr_t = (mod & S_IRWXU);
usr_r = (mod & S_IRUSR);
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |