Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » expected template name ???
expected template name ??? [message #31260] Thu, 17 February 2011 15:12 Go to next message
jibe is currently offline  jibe
Messages: 294
Registered: February 2007
Location: France
Experienced Member
Hi,

Trying to write a new application, I get this message :

"TheIde"

main.cpp
In file included from /home/joseph/upp/MyApps/gTMXcleaner/main.cpp:1:
/home/joseph/upp/MyApps/gTMXcleaner/gTMXcleaner.h:13: error: expected template-name before ‘<’ token
/home/joseph/upp/MyApps/gTMXcleaner/gTMXcleaner.h:13: error: expected ‘{’ before ‘<’ token
/home/joseph/upp/MyApps/gTMXcleaner/gTMXcleaner.h:13: error: expected unqualified-id before ‘<’ token



The line 13 is the declaration of the class :
#ifndef _gTMXcleaner_gTMXcleaner_h
#define _gTMXcleaner_gTMXcleaner_h

#include <CtrlLib/CtrlLib.h>

using namespace Upp;

#include "Controls4U/Controls4U.h"

#define LAYOUTFILE <gTMXcleaner/gTMXcleaner.lay>
#include <CtrlCore/lay.h>

class gTMXcleaner : public WithgTMXcleanerLayout<TopWindow> {
public:
	typedef gTMXcleaner CLASSNAME;
	gTMXcleaner();

	void Clean();
	void Close();
	void Fichier();
};

#endif

What is wrong ? Seems that I followed exactly the samples...
Re: expected template name ??? [message #31265 is a reply to message #31260] Thu, 17 February 2011 15:54 Go to previous messageGo to next message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Hi Jibe

It looks like it can't find the layout. Are you sure there is layout named "gTMXcleanerLayout" in file gTMXcleaner/gTMXcleaner.lay?

Best regards,
Honza
Re: expected template name ??? [message #31269 is a reply to message #31260] Thu, 17 February 2011 18:53 Go to previous messageGo to next message
jibe is currently offline  jibe
Messages: 294
Registered: February 2007
Location: France
Experienced Member
Embarassed Ok : I copied this layout from another application, and it still had the old name...

I did not see that, as it can be seen only in text mode, not with the designer.

Thank you very much ! Smile
Re: expected template name ??? [message #31271 is a reply to message #31269] Thu, 17 February 2011 19:26 Go to previous messageGo to next message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

You're welcome Cool

It happens quite often to me too Smile It is easy to forget something when you copy and paste from other code.

The name of the layout should be visible in the upper-left part of the layout designer, where all the layouts are listed. It is even possible to rename it from the context menu Wink

Honza
Re: expected template name ??? [message #31352 is a reply to message #31271] Thu, 24 February 2011 15:52 Go to previous message
jibe is currently offline  jibe
Messages: 294
Registered: February 2007
Location: France
Experienced Member
Hi,

dolik.rce wrote on Thu, 17 February 2011 19:26

It is even possible to rename it from the context menu Wink

Yes, I should have done that, rather than editing in text mode...
Previous Topic: Introduction (Howard Lee Harkness)
Next Topic: Background of static frames
Goto Forum:
  


Current Time: Mon Apr 29 08:29:25 CEST 2024

Total time taken to generate the page: 0.04581 seconds