473,396 Members | 1,712 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,396 software developers and data experts.

template parse error

Ok I'm no programmer but have done it in the past. I am trying to build
a program from its source, its called Juk. It needs the kde bindings for
GStreamer. I found them using CVS. So no I must build that. When doing
so I get a parse error before token '>' for smartptr.h The line reads

template <class T = Object>

I've looked all around and I only can find template being used without
the = Object part. And when I try removing that part, I get a whole
list of errors from other files, they depend on smartptr.h Any idea as
to why this give me a parse error?

Jul 19 '05 #1
1 2283

"David M Noriega" <Th**********@softhome.net> wrote in message
news:7n****************@twister.austin.rr.com...
Ok I'm no programmer but have done it in the past. I am trying to build
a program from its source, its called Juk. It needs the kde bindings for
GStreamer. I found them using CVS. So no I must build that. When doing
so I get a parse error before token '>' for smartptr.h The line reads

template <class T = Object>

I've looked all around and I only can find template being used without
the = Object part.
It's a default template parameter, indicating that if no
template argument is specified at instantiation, to instantiate
with type 'T' meaning type 'Object'.
And when I try removing that part, I get a whole
list of errors from other files, they depend on smartptr.h Any idea as
to why this give me a parse error?


Perhaps there's no identifier 'Object' in scope at
that point?

-Mike
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Dave O'Hearn | last post by:
This is a stripped down example that duplicates the problem I am having. If I do it with concrete types, I can access the set's iterator type correctly. If I make a template with generic types, I...
0
by: Gil | last post by:
Hope this is the right group to post to. I compiled C++ code that ran fine on Windows with VisualStudio 6.0. I then moved the code to Solaris 9 and compiled with g++, but am getting the...
2
by: Nicolas GALAN | last post by:
Hello, I've a problem about templates which occurs on g++ and not with CC on Irix. g++ says : Test.cpp: In member function `void A::test()': Test.cpp:53: error: parse error before `>' token ...
7
by: Lionel B | last post by:
Greetings. The following code compiles ok and does what I'd expect it to do: ---------- START CODE ---------- // test.cpp
3
by: case2005 | last post by:
Can anyone help with the following, I don't know if it's possible, but I'm certain there must be a standard way of dealing with this. I have the following: template<typename FooBar, typename...
5
by: henkoo | last post by:
i want to explicit instantiate a member function of a class template, and got some error, can anyone give some advice to correct it? 3x complier: g++ 3.2 #include <iostream> #include...
1
by: gio | last post by:
I have a template class with a function that looks like this: template <class Key, int Value, class Tail> struct Parser<Typelist< MakePair<Key, Value>, Tail >, EmptyType> { static...
5
by: lobequadrat | last post by:
Hello, I am trying to get the following code work (unfortunately not mine ... :( ) template <class Tclass Test { public: class ELEM;
9
by: Adam Nielsen | last post by:
Hi all, I'm a bit confused about the syntax used to access a nested template class. Essentially I have a bunch of class types to represent different types of records in a database, and I want...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
tracyyun
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...

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.