Closed dengshiyong closed 9 years ago
Hi dengshiyong. Thanks for trying my library. This looks like a problem with the include path. I've made a change to the premake scripts that should fix this if you could try regenerating the VS solution and rebuilding.
i found another problem,which still can not compile,and i correct the file,i will give you a pull request.next is the compile error log: Build started 2015/8/26 20:09:59. 1>Project "D:\test-xlnt\xlnt-master2\xlnt-master\build\vs2013\xlnt.vcxproj" on node 2 (Rebuild target(s)). 1>ClCompile: D:\tools\vs2013\VC\bin\x86_amd64\CL.exe /c /I....\include /I"....\third-party\miniz" /I"....\third-party\pugixml\src" /Zi /nologo /W4 /WX- /Ox /Oi /D WIN32 /D _CRT_SECURE_NO_WARNINGS /D _UNICODE /D UNICODE /GF /Gm- /EHsc /MD /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Fo"obj\x64\Release\xlnt\" /Fd"obj\x64\Release\xlnt\vc120.pdb" /Gd /TP /errorReport:prompt ....\source\cell.cpp ....\source\cell_reference.cpp ....\source\comment.cpp ....\source\constants.cpp ....\source\datetime.cpp ....\source\detail\cell_impl.cpp ....\source\document_properties.cpp ....\source\drawing.cpp ....\source\exceptions.cpp ....\source\number_format.cpp ....\source\protection.cpp ....\source\range.cpp ....\source\range_reference.cpp ....\source\reader.cpp ....\source\relationship.cpp ....\source\sheet_protection.cpp ....\source\string_table.cpp ....\source\style.cpp ....\source\style_writer.cpp ....\source\value.cpp ....\source\workbook.cpp ....\source\worksheet.cpp ....\source\writer.cpp ....\source\zip_file.cpp "....\third-party\pugixml\src\pugixml.cpp" cell.cpp 1>D:\test-xlnt\xlnt-master2\xlnt-master\include\xlnt/cell/value.hpp(40): error C2535: 'xlnt::value::value(int64_t)' : member function already defined or declared D:\test-xlnt\xlnt-master2\xlnt-master\include\xlnt/cell/value.hpp(35) : see declaration of 'xlnt::value::value' cell_reference.cpp comment.cpp constants.cpp datetime.cpp cell_impl.cpp 1>D:\test-xlnt\xlnt-master2\xlnt-master\include\xlnt/cell/value.hpp(40): error C2535: 'xlnt::value::value(int64_t)' : member function already defined or declared D:\test-xlnt\xlnt-master2\xlnt-master\include\xlnt/cell/value.hpp(35) : see declaration of 'xlnt::value::value' document_properties.cpp drawing.cpp exceptions.cpp number_format.cpp protection.cpp range.cpp range_reference.cpp reader.cpp 1>D:\test-xlnt\xlnt-master2\xlnt-master\include\xlnt/cell/value.hpp(40): error C2535: 'xlnt::value::value(int64_t)' : member function already defined or declared D:\test-xlnt\xlnt-master2\xlnt-master\include\xlnt/cell/value.hpp(35) : see declaration of 'xlnt::value::value' relationship.cpp sheet_protection.cpp string_table.cpp style.cpp style_writer.cpp value.cpp 1>D:\test-xlnt\xlnt-master2\xlnt-master\include\xlnt/cell/value.hpp(40): error C2535: 'xlnt::value::value(int64_t)' : member function already defined or declared D:\test-xlnt\xlnt-master2\xlnt-master\include\xlnt/cell/value.hpp(35) : see declaration of 'xlnt::value::value' Generating Code... Compiling... workbook.cpp 1>D:\test-xlnt\xlnt-master2\xlnt-master\include\xlnt/cell/value.hpp(40): error C2535: 'xlnt::value::value(int64_t)' : member function already defined or declared D:\test-xlnt\xlnt-master2\xlnt-master\include\xlnt/cell/value.hpp(35) : see declaration of 'xlnt::value::value' worksheet.cpp 1>D:\test-xlnt\xlnt-master2\xlnt-master\include\xlnt/cell/value.hpp(40): error C2535: 'xlnt::value::value(int64_t)' : member function already defined or declared D:\test-xlnt\xlnt-master2\xlnt-master\include\xlnt/cell/value.hpp(35) : see declaration of 'xlnt::value::value' writer.cpp 1>D:\test-xlnt\xlnt-master2\xlnt-master\include\xlnt/cell/value.hpp(40): error C2535: 'xlnt::value::value(int64_t)' : member function already defined or declared D:\test-xlnt\xlnt-master2\xlnt-master\include\xlnt/cell/value.hpp(35) : see declaration of 'xlnt::value::value' zip_file.cpp pugixml.cpp Generating Code... 1>Done Building Project "D:\test-xlnt\xlnt-master2\xlnt-master\build\vs2013\xlnt.vcxproj" (Rebuild target(s)) -- FAILED.
Build FAILED.
Time Elapsed 00:00:19.14
when i compile it in the vs2012,some error happened,i googled it then i know the vs2012 did not support full c++11,so the error happened.could you please give a vs2012 patch for the source codes,not only zip_file.cpp,but also \xlnt-master\include\xlnt\styles\fill.hpp . thanks next is some error log 1> pugixml.cpp 1> zip_file.cpp 1>....\source\zip_file.cpp(12): fatal error C1083: Cannot open include file: 'xlnt/common/zip_file.hpp': No such file or directory 1> writer.cpp 1>....\source\writer.cpp(10): fatal error C1083: Cannot open include file: 'xlnt/writer/writer.hpp': No such file or directory 1> worksheet.cpp 1>....\source\worksheet.cpp(3): fatal error C1083: Cannot open include file: 'xlnt/worksheet/worksheet.hpp': No such file or directory 1> workbook.cpp 1>....\source\workbook.cpp(12): fatal error C1083: Cannot open include file: 'xlnt/workbook/workbook.hpp': No such file or directory 1> value.cpp 1>....\source\value.cpp(3): fatal error C1083: Cannot open include file: 'xlnt/cell/value.hpp': No such file or directory 1> style_writer.cpp 1>....\source\style_writer.cpp(4): fatal error C1083: Cannot open include file: 'xlnt/writer/style_writer.hpp': No such file or directory 1> style.cpp 1>....\source\style.cpp(1): fatal error C1083: Cannot open include file: 'xlnt/styles/style.hpp': No such file or directory 1> string_table.cpp 1>....\source\string_table.cpp(3): fatal error C1083: Cannot open include file: 'xlnt/common/string_table.hpp': No such file or directory 1> sheet_protection.cpp 1>....\source\sheet_protection.cpp(5): fatal error C1083: Cannot open include file: 'xlnt/worksheet/sheet_protection.hpp': No such file or directory 1> relationship.cpp 1>....\source\relationship.cpp(1): fatal error C1083: Cannot open include file: 'xlnt/common/relationship.hpp': No such file or directory 1> reader.cpp 1>....\source\reader.cpp(4): fatal error C1083: Cannot open include file: 'xlnt/reader/reader.hpp': No such file or directory 1> range_reference.cpp 1>....\source\range_reference.cpp(3): fatal error C1083: Cannot open include file: 'xlnt/worksheet/range_reference.hpp': No such file or directory 1> range.cpp 1>....\source\range.cpp(1): fatal error C1083: Cannot open include file: 'xlnt/worksheet/range.hpp': No such file or directory 1> protection.cpp 1>....\source\protection.cpp(1): fatal error C1083: Cannot open include file: 'xlnt/styles/protection.hpp': No such file or directory 1> number_format.cpp 1>....\source\number_format.cpp(3): fatal error C1083: Cannot open include file: 'xlnt/styles/number_format.hpp': No such file or directory 1> exceptions.cpp 1>....\source\exceptions.cpp(1): fatal error C1083: Cannot open include file: 'xlnt/common/exceptions.hpp': No such file or directory 1> drawing.cpp 1>....\source\drawing.cpp(1): fatal error C1083: Cannot open include file: 'xlnt/drawing/drawing.hpp': No such file or directory 1> document_properties.cpp 1>....\source\document_properties.cpp(1): fatal error C1083: Cannot open include file: 'xlnt/workbook/document_properties.hpp': No such file or directory 1> cell_impl.cpp 1>d:\test-xlnt\xlnt-master\xlnt-master\source\detail\cell_impl.hpp(3): fatal error C1083: Cannot open include file: 'xlnt/cell/cell.hpp': No such file or directory 1> Generating Code... 1> Compiling... 1> datetime.cpp 1>....\source\datetime.cpp(4): fatal error C1083: Cannot open include file: 'xlnt/common/datetime.hpp': No such file or directory 1> constants.cpp 1>....\source\constants.cpp(3): fatal error C1083: Cannot open include file: 'xlnt/config.hpp': No such file or directory 1> comment.cpp 1>....\source\comment.cpp(1): fatal error C1083: Cannot open include file: 'xlnt/cell/comment.hpp': No such file or directory 1> cell_reference.cpp 1>....\source\cell_reference.cpp(3): fatal error C1083: Cannot open include file: 'xlnt/cell/cell_reference.hpp': No such file or directory 1> cell.cpp 1>....\source\cell.cpp(5): fatal error C1083: Cannot open include file: 'xlnt/cell/cell.hpp': No such file or directory