473,385 Members | 1,474 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

namespace error

31
why those errors are happened.

expected unqualified-id before ‘namespace’

abstract declarator ‘axutil_stack_t*’ used as declaration

coding is,
axutil_stack_t *namespace;
Jun 26 '07 #1
9 1644
gpraghuram
1,275 Expert 1GB
why those errors are happened.

expected unqualified-id before ‘namespace’

abstract declarator ‘axutil_stack_t*’ used as declaration

coding is,
axutil_stack_t *namespace;
namespace is a reserved keyword in c++.
thats why u are getting the error.

Raghuram
Jun 26 '07 #2
mihiri
31
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.
Jun 27 '07 #3
gpraghuram
1,275 Expert 1GB
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?

Raghuram
Jun 27 '07 #4
mihiri
31
[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
Jun 27 '07 #5
gpraghuram
1,275 Expert 1GB
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
Jun 27 '07 #6
mihiri
31
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
Jun 27 '07 #7
gpraghuram
1,275 Expert 1GB
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
Jun 27 '07 #8
mihiri
31
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
Jun 28 '07 #9
mihiri
31
this is the makefile.am in guththila .Can u pls help me to make it.I dont know how it do
Thanks ur help
#datadir=$(prefix)
SUBDIRS = src
includedir=$(prefix)/include/axis2-1.1
include_HEADERS=$(top_builddir)/include/*.h
data_DATA= INSTALL README AUTHORS NEWS LICENSE COPYING
#EXTRA_DIST = build.sh autogen.sh CREDITS LICENSE
dist-hook:
rm -rf `find $(distdir)/ -type d -name .svn`
rm -rf `find $(distdir)/ -type d -name .deps`
Jun 28 '07 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Enos Meroka | last post by:
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. ...
2
by: Bryan Parkoff | last post by:
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...
6
by: clinton__bill | last post by:
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...
2
by: Tony Johansson | last post by:
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...
0
by: Tressa | last post by:
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...
5
by: Genboy | last post by:
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...
12
by: Plop69 | last post by:
need some help on following: xml file 1 <TEST xmlns="http://test" > <OK>mlkddflmkj</OK> </TEST>
3
by: sjt003 | last post by:
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...
5
by: michael.d.pedersen | last post by:
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...
2
by: sushilkaushik | last post by:
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...
1
by: CloudSolutions | last post by:
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...
0
by: Faith0G | last post by:
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...
0
isladogs
by: isladogs | last post by:
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
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...
0
by: emmanuelkatto | last post by:
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
0
BarryA
by: BarryA | last post by:
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.