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 » U++ Library support » U++ Library : Other (not classified elsewhere) » Smtp: compiling error in smtp.h
Smtp: compiling error in smtp.h [message #39964] Sat, 18 May 2013 14:34 Go to next message
Alboni is currently offline  Alboni
Messages: 182
Registered: January 2012
Location: Deventer, Netherlands
Experienced Member
	Smtp&      AddHeader(const String& text)                      { add_header << text << "\r\n"; }
	Smtp&      AddHeader(const char *id, const String& txt)       { add_header << id << ": " << txt << "\r\n"; }

should be:

	Smtp&      AddHeader(const String& text)                      { add_header << text << "\r\n"; return *this; }
	Smtp&      AddHeader(const char *id, const String& txt)       { add_header << id << ": " << txt << "\r\n"; return *this; }


(version 5485)
Re: Smtp: compiling error in smtp.h [message #39965 is a reply to message #39964] Sun, 19 May 2013 01:27 Go to previous messageGo to next message
nlneilson is currently offline  nlneilson
Messages: 644
Registered: January 2010
Location: U.S. California. Mojave &...
Contributor
Update to a later version, it is up to 6078 now.

What file and the line number?

What problems are you having the way it is or the compiling error?
Re: Smtp: compiling error in smtp.h [message #39968 is a reply to message #39964] Sun, 19 May 2013 12:26 Go to previous messageGo to next message
Alboni is currently offline  Alboni
Messages: 182
Registered: January 2012
Location: Deventer, Netherlands
Experienced Member
When invoking Smtp::AddHeader I got the error:
"AddHeader must return a value"

(because it is an inline function you only get the error if the function is actually used, wich is probably why it was overlooked)

core/smtp.h Line 69 and 70

I got no compilation problem after I added
return *this;
to the functions, wich is obviously what was intended.





Re: Smtp: compiling error in smtp.h [message #40017 is a reply to message #39968] Sun, 26 May 2013 17:17 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 12096
Registered: November 2005
Ultimate Member
Should be now fixed.

Mirek
Re: Smtp: compiling error in smtp.h [message #40019 is a reply to message #39964] Sun, 26 May 2013 19:02 Go to previous message
Alboni is currently offline  Alboni
Messages: 182
Registered: January 2012
Location: Deventer, Netherlands
Experienced Member
I can't always use the newest version because I work in a team, but I'll check the latest version before submitting more bugreports.

Previous Topic: [FIXED] Memory leak in FreeType.
Next Topic: [FIXED] FC_WEIGHT is too big.
Goto Forum:
  


Current Time: Tue Nov 12 12:50:28 CET 2019

Total time taken to generate the page: 0.01162 seconds