When using vlibs.

When using vlibs.

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
Super Mario
Posts: 820
Joined: 21 Oct 2008, 02:54

When using vlibs.

Post by Super Mario »

Be sure to use clang-cl with the /fallback flag and report any bugs to clang devs.
abma
Spring Developer
Posts: 3704
Joined: 01 Jun 2009, 00:08

Re: When using vlibs.

Post by abma »

whats holding you from writing down instructions to a wiki page?
Super Mario
Posts: 820
Joined: 21 Oct 2008, 02:54

Re: When using vlibs.

Post by Super Mario »

abma wrote:whats holding you from writing down instructions to a wiki page?
Not able to compile the engine obviously. Assistance would be nice.
abma
Spring Developer
Posts: 3704
Joined: 01 Jun 2009, 00:08

Re: When using vlibs.

Post by abma »

Super Mario wrote:Not able to compile the engine obviously. Assistance would be nice.
can you provide details? error messages?! steps what you did? this is why already documenting this in a wiki page would be handy, others can step into it, too.
Super Mario
Posts: 820
Joined: 21 Oct 2008, 02:54

Re: When using vlibs.

Post by Super Mario »

abma wrote:
Super Mario wrote:Not able to compile the engine obviously. Assistance would be nice.
can you provide details? error messages?! steps what you did? this is why already documenting this in a wiki page would be handy, others can step into it, too.
I don't keep track of the error messages and details that I have attempting to compile spring. Certain I don't think the wiki should be used for these things, rather than using the forum.
abma
Spring Developer
Posts: 3704
Joined: 01 Jun 2009, 00:08

Re: When using vlibs.

Post by abma »

if you want/need help, you have to. for error messages use pastebin or sth. similar.
User avatar
Silentwings
Moderator
Posts: 3686
Joined: 25 Oct 2008, 00:23

Re: When using vlibs.

Post by Silentwings »

Using the forum or the wiki are both fine for documenting/solving issues with new stuff, just mark the new wiki page with an appropriate warning.
Super Mario
Posts: 820
Joined: 21 Oct 2008, 02:54

Re: When using vlibs.

Post by Super Mario »

abma
Spring Developer
Posts: 3704
Joined: 01 Jun 2009, 00:08

Re: When using vlibs.

Post by abma »

mantised: https://springrts.com/mantis/view.php?id=4937

i wonder why it compiles with other compilers. are you trying to compile current development version?
Super Mario
Posts: 820
Joined: 21 Oct 2008, 02:54

Re: When using vlibs.

Post by Super Mario »

abma wrote:mantised: https://springrts.com/mantis/view.php?id=4937

i wonder why it compiles with other compilers. are you trying to compile current development version?
I'm trying to compile the dev version.
abma
Spring Developer
Posts: 3704
Joined: 01 Jun 2009, 00:08

Re: When using vlibs.

Post by abma »

@Super Mario:

feedback: https://springrts.com/mantis/view.php?id=4937#c15094

can you try the manually expanding?
Super Mario
Posts: 820
Joined: 21 Oct 2008, 02:54

Re: When using vlibs.

Post by Super Mario »

Like this?

Code: Select all

template<class TCls, class TBase>
void Cr_bind_derived_interface(TCls, TBase)
{
	bool TCls::creg_hasVTable = std::is_polymorphic<TCls>::value; 
		creg::IMemberRegistrator* TCls::memberRegistrator = 0;	
		creg::Class* TCls::GetClass() const { return binder.class_; } 
		creg::ClassBinder TCls::binder(TCls, (unsigned int)creg::CF_Abstract, &TBase::binder, &TCls::memberRegistrator, sizeof(TCls), alignof(TCls), TCls::creg_hasVTable, TCls::creg_isStruct, 0, 0);
}
Cr_bind_derived_interface(CWaitCommandsAI::Wait, CObject);
It now telling me that it's expecting me to specify what type that CWaitCommandsAI::Wait is.
Hold on, the nested Wait class is declare private on the WaitCommandsAI.h...........

Why?

Edit: this line seems to be the culprit.

Code: Select all

creg::ClassBinder CWaitCommandsAI::Wait::binder(CWaitCommandsAI::Wait, (unsigned int)creg::CF_Abstract, &CObject::binder, &CWaitCommandsAI::Wait::memberRegistrator, sizeof(CWaitCommandsAI::Wait), alignof(CWaitCommandsAI::Wait), CWaitCommandsAI::Wait::creg_hasVTable, CWaitCommandsAI::Wait::creg_isStruct, 0, 0);
Super Mario
Posts: 820
Joined: 21 Oct 2008, 02:54

Re: When using vlibs.

Post by Super Mario »

There are the errors from manually expanding the macros.

Edit: got the same error from gcc as well.
Attachments
error.txt
(1.16 KiB) Downloaded 7 times
Post Reply

Return to “Engine”