Problems with boost math building unitsync.dll

Problems with boost math building unitsync.dll

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
User avatar
drwho
Posts: 6
Joined: 31 Oct 2009, 17:12

Problems with boost math building unitsync.dll

Post by drwho »

Hello Folks,

I've searched through this forum and have not been able to find anything about this particular problem, but, if I missed it, my apologies in advance.

I am using Visual Studio 2005 Professional and I can build rts.sln just fine with minimal fiddling. My problem is building unitsync.dll and is specifically an issue with the boost math (I think?).

I get the following errors in streflop_cond.h:

Code: Select all

e:\Projects\spring\rts\lib/streflop/streflop_cond.h(44) : error C2039: 'isnan' : is not a member of 'std'
e:\Projects\spring\rts\lib/streflop/streflop_cond.h(44) : error C2873: 'isnan' : symbol cannot be used in a using-declaration
e:\Projects\spring\rts\lib/streflop/streflop_cond.h(45) : error C2039: 'isinf' : is not a member of 'std'
e:\Projects\spring\rts\lib/streflop/streflop_cond.h(45) : error C2873: 'isinf' : symbol cannot be used in a using-declaration
e:\Projects\spring\rts\lib/streflop/streflop_cond.h(46) : error C2039: 'isfinite' : is not a member of 'std'
e:\Projects\spring\rts\lib/streflop/streflop_cond.h(46) : error C2873: 'isfinite' : symbol cannot be used in a using-declaration
I have found a few topics here and there by googling around which are somewhat related but offer no reason or solution to this issue.

Does this look familiar to anyone?

Thanks,
Mike
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Problems with boost math building unitsync.dll

Post by AF »

I had the same issues building NTai in vs2008, the lines where added to streflop_cond.h by kloot in a commit a while ago.

i commented the 3 lines out and continued compiling.
User avatar
drwho
Posts: 6
Joined: 31 Oct 2009, 17:12

Re: Problems with boost math building unitsync.dll

Post by drwho »

AF wrote:i commented the 3 lines out and continued compiling.
I'll give this a whirl and see what happens. :wink:
User avatar
drwho
Posts: 6
Joined: 31 Oct 2009, 17:12

Re: Problems with boost math building unitsync.dll

Post by drwho »

The project builds now, with a few silly errors left over that are just files which can't be found, but, I am curious as to why these were added.

looking at the commit history on github doesn't reveal much about why these were added.

The world may never know. :roll:
User avatar
drwho
Posts: 6
Joined: 31 Oct 2009, 17:12

Re: Problems with boost math building unitsync.dll

Post by drwho »

Hmmm ... unfortunately, these 3 declarations are used in some other places.

Ugh ... back to the drawing board.
Post Reply

Return to “Engine”