Giter Site home page Giter Site logo

Comments (4)

Malvineous avatar Malvineous commented on May 20, 2024

Also just got a compile error in the test code (not with CMake, but with autoconf, so not sure whether this file is included in the CMake tests?)

diff --git a/tests/helpers/temporary_file.hpp b/tests/helpers/temporary_file.hpp
index 481a7f9..110b978 100644
--- a/tests/helpers/temporary_file.hpp
+++ b/tests/helpers/temporary_file.hpp
@@ -4,7 +4,7 @@
 #include <cstdio>
 #include <string>

-#include <detail/include_windows.hpp>
+#include <xlnt/detail/include_windows.hpp>

 #include "path_helper.hpp"

from xlnt.

tfussell avatar tfussell commented on May 20, 2024

Not sure how those slipped by me. I'll update them this evening. Also, thanks for giving it a try. Always nice to hear that someone is using the library.

from xlnt.

tfussell avatar tfussell commented on May 20, 2024

The missing include in manifest.cpp has been added in a2919df. For the second one, instead of changing tests/helpers/temporary_file.hpp, you can also add /source as an include directory when configuring with autoconf so it can find the source/detail headers. My using source as an include directory is somewhat unusual so I might move those headers eventually.

from xlnt.

Malvineous avatar Malvineous commented on May 20, 2024

Thanks for the explanation! I figure tests are a bit unusual anyway in that they need more access to the code than you might make available through the public API, so having the source directory as an include path is probably not that unusual! (In my own code I do things like #include "../source/blah.hpp" which is perhaps even worse!)

from xlnt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.