1
当包括头在CMake的项目中使用ttmath与Visual Studio编译2013 64位编译
#include "ttmath/ttmath.h"
作为ttmath's web page(其中文库包含在文件夹ttmath
在项目文件夹中)所描述的,我得到了一些编译器错误的类似以下内容:
main.cpp.obj:-1: error: LNK2019: unresolved external symbol ttmath_adc_x64 referenced in function "public: unsigned __int64 __cdecl ttmath::UInt<28>::Add(class ttmath::UInt<28> const &,unsigned __int64)" ([email protected][email protected][email protected]@[email protected]@[email protected][email protected])
我使用Qt Creator的3.3.1,其产生的CMakeLists.txt
文件
project(my_project)
cmake_minimum_required(VERSION 2.8)
aux_source_directory(. SRC_LIST)
add_executable(${PROJECT_NAME} ${SRC_LIST})