Author Message

<  beginners  ~  ofxSimpleGuiToo - function must return a value

PostPosted: Wed Dec 23, 2009 10:13 pm
Joined: Thu Oct 29, 2009 3:00 pmPosts: 64
Hi @ all,

i was trieng to test the ofxSimpleGuiToo but i'am getting some errors which i cannot understand.

addons\ofxsimpleguitoo\ofxsimpleguicontrol.cpp(62) : error C4716: 'ofxSimpleGuiControl::setConfig':must return a value
...
..
..

(there are 9 more errors from the same type in the same file)

Normally i was getting such errors, when mac-users where giving me their files. I tried to change the functions to "void" but still getting the errors.

thank you for your concern


Offline Profile
PostPosted: Sat Dec 26, 2009 12:19 am
Joined: Thu Oct 29, 2009 3:00 pmPosts: 64
Solution:
Hi everyone, searching more accurate has guided me to the solution. As i have expected it is a microsoft specific problem. VS doesn't like function without any return value, you can add a

Quote:
return *this;


to every function which says "must have a value"

For detailled information, the solution was here:
viewtopic.php?f=10&t=2619&start=0


thanks, see you.


Offline Profile

Display posts from previous:  Sort by:

All times are UTC
Page 1 of 1
2 posts
Users browsing this forum: No registered users and 1 guest
Search for:
Post new topic  Reply to topic
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
cron