Subj : Compiler errors when porting libsigc++ (Unix -> BCB) To : borland.public.cpp.borlandcpp From : Jens =?ISO-8859-1?Q?B=E4ckman?= Date : Mon May 17 2004 02:31 pm Hi, all. I'm currently using libsigc++ 2 in a Unix application, and want to use the Unix-code inside my Builder application too. So, building it as a DLL would be superb. Now, after installing Cygwin to get access to autoconf and friends, I create a new project where *.cc are considered C/C++ files, and all files are forced to be considered C++. Hitting Ctrl+F9, and I get errors immediately... Here's the code. ------[ functor_trait.h ]------ template class mem_functor0; template class const_mem_functor0; template // Next line is #187. Just to make things clearer. struct functor_trait {    typedef T_return result_type;    typedef mem_functor0 functor_type; }; template struct functor_trait {    typedef T_return result_type;    typedef const_mem_functor0 functor_type; }; ------------------------------- And the messages... ------[ Warnings/Errors ]------ [C++ Error] functor_trait.h(187): E2272 Identifier expected [C++ Error] functor_trait.h(187): E2188 Expression syntax [C++ Error] functor_trait.h(191): E2299 Cannot generate template specialization from 'functor_trait' [C++ Error] functor_trait.h(197): E2428 Templates must be classes or functions ------------------------------- Anyone who can point me in the right direction here? .