Hi Dan,

This is a typical error that comes up when GCC is replaced with Clang.
The standard says the "template" keyword should be used in some places;
Clang listens to this and GCC doesn't care.

There are three possible fixes: bump to an upstream version where this
is fixed (if there is one), patch the code to add "template" exactly
where the error wants it to be, or force compilation with GCC instead of
Clang.

I don't use Assimp myself anymore, so while I can check if the code
compiles I can't check if it works. Do you want to pick this up?

Sjors

Daniel Macks schreef op 08-05-14 02:30:
> OS X 10.7
> Xcode.app: 4.6.1
> Xcode command-line tools: 4.6.0.0.1.1362189000
> 
> The CompileScript specifies 'make -j4' (why override user system prefs?), so 
> I knocked it down to -j1 there. 
> 
> [ 82%] Building CXX object code/CMakeFiles/assimp.dir/IFCLoader.cpp.o
> In file included from 
> /sw/build.build/libassimp-3.0.1270-1/assimp--3.0.1270-source-only/code/IFCLoader.cpp:53:
> In file included from 
> /sw/build.build/libassimp-3.0.1270-1/assimp--3.0.1270-source-only/code/STEPFileReader.h:44:
> /sw/build.build/libassimp-3.0.1270-1/assimp--3.0.1270-source-only/code/STEPFile.h:198:64:
>  error: use 'template' keyword to treat 'To' as a dependent template name
>                                 return Couple(db).MustGetObject(To())->To();
>                                                                               
>              ^
>                                                                               
>              template 
> /sw/build.build/libassimp-3.0.1270-1/assimp--3.0.1270-source-only/code/STEPFile.h:204:47:
>  error: use 'template' keyword to treat 'ToPtr' as a dependent template name
>                                 return 
> e?Couple(db).MustGetObject(*e)->ToPtr():(const T*)0;
>                                                                           ^
>                                                                           
> template 
> 2 errors generated. 
> make[2]: *** [code/CMakeFiles/assimp.dir/IFCLoader.cpp.o] Error 1
> [ 82%] Building CXX object code/CMakeFiles/assimp.dir/IFCLoader.cpp.o
> In file included from 
> /sw/build.build/libassimp-3.0.1270-1/assimp--3.0.1270-source-only/code/IFCLoader.cpp:53:
> In file included from 
> /sw/build.build/libassimp-3.0.1270-1/assimp--3.0.1270-source-only/code/STEPFileReader.h:44:
> /sw/build.build/libassimp-3.0.1270-1/assimp--3.0.1270-source-only/code/STEPFile.h:198:64:
>  error: use 'template' keyword to treat 'To' as a dependent template name
>                                 return Couple(db).MustGetObject(To())->To();
>                                                                               
>              ^
>                                                                               
>              template 
> /sw/build.build/libassimp-3.0.1270-1/assimp--3.0.1270-source-only/code/STEPFile.h:204:47:
>  error: use 'template' keyword to treat 'ToPtr' as a dependent template name
>                                 return 
> e?Couple(db).MustGetObject(*e)->ToPtr():(const T*)0;
>                                                                           ^
>                                                                           
> template 
> 2 errors generated. 
> make[2]: *** [code/CMakeFiles/assimp.dir/IFCLoader.cpp.o] Error 1
> 
> dan
> 
>  --
> Daniel Macks
> dma...@netspace.org
> 

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to