Jump to content

Compilation error while building Torque3D


TheIllusionistMirage

Recommended Posts

Hello!


I downloaded Torque3D's source and I'm building it on Fedora 22, 32-bit using g++ 5.3.1. After doing the regualr procedure with cmake and generating codeblocks-unix makefiles, while compiling I'm getting this error:

/home/koushtav/Downloads/Torque3D-master/Engine/source/platform/platformIntrinsics.h|44|error: ISO C++ forbids declaration of ‘type name’ with no type [-fpermissive]|

I'm unable to understand why the template function defined there:

template< typename T >
inline bool dCompareAndSwap( T* volatile& refPtr, T* oldPtr, T* newPtr )
{
  return dCompareAndSwap( *reinterpret_cast< volatile size_t* >( &refPtr ), ( size_t ) oldPtr, ( size_t ) newPtr );
}


is giving that error during compilation. Help or pointers are appreciated.


Thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...