About Store Forum Documentation Contact
Donations:
392$/mo



Post Reply 
Unresolved external symbol
Author Message
aceio76 Offline
Silver Supporter

Post: #1
Unresolved external symbol
Why would a line like below inside a class (using Code Editor) cause an error:
Code:
class Client
{
  ...
  ~Client();
}

On build, it complains, "unresolved external symbol, 'public: __thiscall Client:~Client(void)".

What is the proper way of building a class and specifying a destructor, again, through the Code Editor?

www.thinkplaystudios.com
09-09-2011 02:32 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Dandruff Offline
Member

Post: #2
RE: Unresolved external symbol
it works for me
09-09-2011 03:15 AM
Find all posts by this user Quote this message in a reply
aceio76 Offline
Silver Supporter

Post: #3
RE: Unresolved external symbol
any idea what's different? Don't forget, this is done through the Code Editor, not Visual Studio. I don't have these problems with VS.

www.thinkplaystudios.com
(This post was last modified: 09-09-2011 03:40 AM by aceio76.)
09-09-2011 03:39 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Dandruff Offline
Member

Post: #4
RE: Unresolved external symbol
class Client
{
~Client();
}

yes, in code editor. Maybe try to add a new es file and put it in there?
09-09-2011 04:51 AM
Find all posts by this user Quote this message in a reply
aceio76 Offline
Silver Supporter

Post: #5
RE: Unresolved external symbol
:(
Same.

I am running the latest update, and reran again just in case.

www.thinkplaystudios.com
(This post was last modified: 09-09-2011 03:22 PM by aceio76.)
09-09-2011 03:21 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #6
RE: Unresolved external symbol
~Client() {} ?
09-09-2011 03:22 PM
Find all posts by this user Quote this message in a reply
aceio76 Offline
Silver Supporter

Post: #7
RE: Unresolved external symbol
Yup, that works, as one would think it would.

I see in Ineisis Lite that uses ~Client(); but how come it doesn't work for my test project? Is there some preparation I need to do when I create a new project?

www.thinkplaystudios.com
09-10-2011 12:02 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #8
RE: Unresolved external symbol
I recommend that you study C++
in Code Editor as in C++ you can define function bodies outside of class definition
09-11-2011 11:25 AM
Find all posts by this user Quote this message in a reply
aceio76 Offline
Silver Supporter

Post: #9
RE: Unresolved external symbol
I understand that, but it seems inconsistent with the Code Editor. What works one place doesn't with another, and that's what I am saying is if there is anything that needs to be done for a new project so that all projects behave the same way.

The idea of extending classes and being able to define functions from the class outside of the class definition is basic and other languages have adopted that from C++. It still doesn't make sense that in Ineisis Lite, it defines it that way and it works, but if you start a new project and copy the es files, those sort of lines causes errors.

www.thinkplaystudios.com
(This post was last modified: 09-11-2011 05:06 PM by aceio76.)
09-11-2011 04:58 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Dandruff Offline
Member

Post: #10
RE: Unresolved external symbol
Maybe it's because function bodies were just hidden in the Ineisis Lite project?
09-11-2011 06:24 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #11
RE: Unresolved external symbol
all function bodies are available in Ineisis Lite, aceio just didn't look carefully enough
09-11-2011 07:20 PM
Find all posts by this user Quote this message in a reply
Post Reply