compile ExcelFormat Library

compile ExcelFormat Library

本文关键字:Library ExcelFormat compile      更新时间:2023-10-16

有人能告诉我如何解决这个问题吗。我正试图在此处编译此库:http://www.codeproject.com/Articles/42504/ExcelFormat-Library

我正在做:g++ Examples.cpp

gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)

如果我的问题是easy/basic/simple/os-dependent。。。请告诉我推荐一两本我应该先读的书,以便找出这个问题的答案。

这是错误消息:

/tmp/cczceVBy.o:在函数example1(char const*)': Examples.cpp:(.text+0x2d): undefined reference to中YExcel::BasicExcel::Basic Excel()'示例.cpp:(.text+0x41):对YExcel::BasicExcel::New(int)' Examples.cpp:(.text+0x55): undefined reference to YExcel::BasicExcel::GetWorksheet(int)'的未定义引用示例.cpp:(.text+0x75):对ExcelFormat::XLSFormatManager::XLSFormatManager(YExcel::BasicExcel&)' Examples.cpp:(.text+0xf2): undefined reference to YExcel::BasicExcelWorksheet::Cell(int,int)'的未定义引用示例.cpp:(.text+0x10d):对YExcel::BasicExcelCell::Set(char const*)' Examples.cpp:(.text+0x166): undefined reference to的未定义引用YExcel::BasicExcelWorksheet::Cell(int,int)'示例.cpp:(.text+0x173):对YExcel::BasicExcelCell::Set(char const*)' Examples.cpp:(.text+0x287): undefined reference to YExcel::BasicExcelWorksheet::Cell(int,int)'的未定义引用示例.cpp:(.text+0x2a2):对YExcel::BasicExcelCell::Set(char const*)' Examples.cpp:(.text+0x2df): undefined reference to YExcel::BasicExcelWorksheet::Cell(int,int)'的未定义引用

----狙击更多同类-----

collect2:ld返回1退出状态

使用Excelformat zip文件附带的项目目录中的BasicExcel.Cpp和BasicExcel.hpp文件。