zbtzbtzbt commented on pull request #8500:
URL: https://github.com/apache/incubator-doris/pull/8500#issuecomment-1072970386


   I tried to use template, but get an error when compiling, I have also tried 
different ways of writing,
    all of which are the same error, can someone help me? thanks
   ```
   /incubator-doris/be/src/olap/aggregate_func.h:106: undefined reference to 
   `std::shared_ptr<doris::TypeInfo const> 
doris::get_scalar_type_info_by_template<(doris::FieldType)9>()'
   src/olap/libOlap.a(aggregate_func.cpp.o): In function 
`doris::BaseAggregateFuncs<(doris::FieldType)10, 
(doris::FieldType)22>::init(doris::RowCursorCell*, char const*, bool, 
doris::MemPool*, doris::ObjectPool*)':
   /incubator-doris/be/src/olap/aggregate_func.h:106: undefined reference to 
`std::shared_ptr<doris::TypeInfo const> 
doris::get_scalar_type_info_by_template<(doris::FieldType)10>()'
   src/olap/libOlap.a(aggregate_func.cpp.o): In function 
`doris::BaseAggregateFuncs<(doris::FieldType)11, 
(doris::FieldType)22>::init(doris::RowCursorCell*, char const*, bool, 
doris::MemPool*, doris::ObjectPool*)':
   /incubator-doris/be/src/olap/aggregate_func.h:106: undefined reference to 
`std::shared_ptr<doris::TypeInfo const> 
doris::get_scalar_type_info_by_template<(doris::FieldType)11>()'
   collect2: error: ld returned 1 exit status
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to