Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Error caused by a version of a function that shouldn't be compiled
Urkle Offline
FG - Associate

Posts: 1,172
Threads: 31
Joined: Jul 2006
Reputation: 21
#4
RE: Error caused by a version of a function that shouldn't be compiled

So, later Xcode releases from apple no longer include GCC as a compilation option.. Thus you need to fix the function as clang has "issues" and compiles template variations that are never used. the fix is to do something like this in angelscript.h

asUPtr dummy;
return dummy;

instead of the return 0;

now you'll find other *fun* after you fix that oneSmile Recall this game was originally compiled on VC++2003, GCC 4.0 (mac) and GCC 4.2(linux)

The *next* bit I ran into (Clang 5.0, SDK 10.9) was a "cannot take address of temporary). the fix I employed was to add this to the iLowLevelGraphics interface.. (LowLevelGraphics.h)

void AddVertexToBatch(const cVertex& apVtx) { AddVertexToBatch(&apVtx); }

and change the code in cRender2D from

mpLowLevelGraphics->AddVertexToBatch(&cVertex(vPointPos[0],ShadowColor));
mpLowLevelGraphics->AddVertexToBatch(&cVertex(vPointPos[1],ShadowColor));

to

mpLowLevelGraphics->AddVertexToBatch(cVertex(vPointPos[0],ShadowColor));
mpLowLevelGraphics->AddVertexToBatch(cVertex(vPointPos[1],ShadowColor));


100% compile now.

Developing away on one of
Multiple Macs running 10.6, 10.7, 10.8, and 10.9.
Linux, 8-core AMD, 8GB RAM, Fedora 18, nVidia 450 1GB
(This post was last modified: 01-27-2014, 04:18 PM by Urkle.)
01-27-2014, 04:13 PM
Website Find


Messages In This Thread
RE: Error caused by a version of a function that shouldn't be compiled - by Urkle - 01-27-2014, 04:13 PM



Users browsing this thread: 2 Guest(s)