namespace is a reserved keyword in c++.
thats why u are getting the error.
Raghuram
thanks your information.but this namespace is not that c++ standered namespace.This is a namespace of xml document, and my programme is read xml document using C language.In this senario I have previously mention error.
thanks your information.but this namespace is not that c++ standered namespace.This is a namespace of xml document, and my programme is read xml document using C language.In this senario I have previously mention error.
If u are using g++ compiler to compiler the code you will be getting the error for the usage of namespace as a variable name.
Try using gcc to compile, there wont be any issues
By the way which compiler r u using?
[quote=gpraghuram]If u are using g++ compiler to compiler the code you will be getting the error for the usage of namespace as a variable name.
Try using gcc to compile, there wont be any issues
By the way which compiler r u using?
Raghuram[/QUOTE
previously I compile using g++ compiler.Now I use gcc compiler(gcc file name.c -I/path in include folder).Then it shows some errors but I dont know whether they are errors warning or any other.those are the shown in below
/tmp/ccC1bqcn.o: In function `main':guththila_main.c:(.text+0x26): undefined reference to `axutil_allocator_init'
:guththila_main.c:(.text+0x3b): undefined reference to `axutil_env_create'
:guththila_main.c:(.text+0x5b): undefined reference to `guththila_reader_create_for_file'
:guththila_main.c:(.text+0xae): undefined reference to `guththila_reader_create_for_memory'
:guththila_main.c:(.text+0xc3): undefined reference to `guththila_create'
:guththila_main.c:(.text+0xd8): undefined reference to `guththila_read'
:guththila_main.c:(.text+0x114): undefined reference to `guththila_get_attribute_count'
:guththila_main.c:(.text+0x12e): undefined reference to `guththila_get_attribute'
:guththila_main.c:(.text+0x14a): undefined reference to `guththila_get_attribute_name'
:guththila_main.c:(.text+0x18e): undefined reference to `guththila_get_attribute_value'
:guththila_main.c:(.text+0x1cb): undefined reference to `guththila_attribute_free'
:guththila_main.c:(.text+0x20a): undefined reference to `guththila_get_prefix'
:guththila_main.c:(.text+0x24d): undefined reference to `guththila_get_name'
:guththila_main.c:(.text+0x28a): undefined reference to `guththila_get_attribute_count'
:guththila_main.c:(.text+0x2ab): undefined reference to `guththila_get_attribute_prefix_by_number'
:guththila_main.c:(.text+0x2f9): undefined reference to `guththila_get_attribute_name_by_number'
:guththila_main.c:(.text+0x33d): undefined reference to `guththila_get_attribute_value_by_number'
:guththila_main.c:(.text+0x386): undefined reference to `guththila_get_attribute_name_by_number'
:guththila_main.c:(.text+0x3ca): undefined reference to `guththila_get_attribute_value_by_number'
:guththila_main.c:(.text+0x41a): undefined reference to `axutil_stack_get'
:guththila_main.c:(.text+0x444): undefined reference to `guththila_get_namespace_prefix_by_number'
:guththila_main.c:(.text+0x4d5): undefined reference to `guththila_get_namespace_uri_by_number'
:guththila_main.c:(.text+0x577): undefined reference to `guththila_get_prefix'
:guththila_main.c:(.text+0x5ba): undefined reference to `guththila_get_name'
:guththila_main.c:(.text+0x60c): undefined reference to `guththila_get_value'
:guththila_main.c:(.text+0x649): undefined reference to `guththila_next'
:guththila_main.c:(.text+0x668): undefined reference to `guththila_reader_free'
:guththila_main.c:(.text+0x67a): undefined reference to `guththila_free'
:guththila_main.c:(.text+0x685): undefined reference to `axutil_env_free'
collect2: ld returned 1 exit status
Can you please help me
R u using any XML library to parse the xml file?
What i mean is r u using any dll or using code directly?
If u are using code then how are u compiling the xml parser code?
My advise is why cant u change the name of the variable from namepsace to any other name?(If possible)
R u using any XML library to parse the xml file?
What i mean is r u using any dll or using code directly?
If u are using code then how are u compiling the xml parser code?
My advise is why cant u change the name of the variable from namepsace to any other name?(If possible)
Raghuram
changing variable name is not possible,but I've already tried it and same errors will occure.This programme is a xml parser and I use code directly.
Actually I have to do conversion of xml to fast infoset(binary format).So I have to use xml parser to read our xml document and I use guththila for that purpose.Guththila is a popen source c parser in axis2.So can u pls try to run the /axis2c-src-1.0.0/guththila/samples/guththila_main.c
relevent link is below
http://ws.apache.org/axis2/c/download.cgi
Currently i wont be able to download and run the utility.
My doubt is r u building the Guththila properly with proper #defines or includes?
the error shows undefined reference to some function calls.
I think you may be missing some #defines?
Guththila should have a make file to compile it,
Try to build the Guththila first and then your code.
I think that may help u
Currently i wont be able to download and run the utility.
My doubt is r u building the Guththila properly with proper #defines or includes?
the error shows undefined reference to some function calls.
I think you may be missing some #defines?
Guththila should have a make file to compile it,
Try to build the Guththila first and then your code.
I think that may help u
Regards
Raghuram
this is the makefile.am in guththila .Can u pls help me to make it.I dont know how it do
Thanks ur help
Hallo,
I am a student doing my project in the university.. I have been trying
to compile the program using HP -UX aCC compiler, however I keep on
getting the following errors.
...
MPU_Group is the namespace and MPU is the struct. Three members: A, B,
and C are in the MPU struct inside MPU_Group namespace. I tried to compile,
but it shows error saying MPU struct is not...
Hi,
I usually use "using namespace <namespace_name>" to reference a
namespace. Today I run across a code, in its header file it has this,
namespace SP1{
class C1;
}
While SP1::C1 is a...
Hello!
I'm reading a book about C++ and there is something that I don't understand
so I ask you.
Below I have the text from the book and the code from the file where main is
located and some...
Sorry to be such a novice about this but..... I have a windows service. It
contains two separate files. Both have the same namespace name.
I need to pass "bDisplay" into the other file. I am...
My "VIS" Website, which is a C# site created in VS.NET, Framework 1.1,
is no longer compiling for me via the command line.
As I have done 600 times in the last year and a half, I can compile to...
I have been developing web apps in Visual Studio 2003, but since the other
developers in my office don't use Visual Studio, I may have to stop too
unless there is an efficient way for them to...
Hello group,
I am new to Visual C++ 8 and have a seemingly trivial problem using
namespaces. The scenario: I have two classes, TestClass1 and
TestClass2, in the namespace Test. I would like to...
In my VC++ project (using Visual Studio 2005) I have two DLLs : CommonClasses.dll and CheckIn.dll
I added both of them in exactly the same way. First, CommonClesses and then CheckIn, using...
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...