Giter VIP home page Giter VIP logo

fmtlibwithcppbuilderclang's Introduction

{fmt} library with C++ Builder's clang toolchains

Cloning

Please, clone the repository using the 'recurse-submodule' switch:

git clone --recurse-submodules https://github.com/gcardi/FmtLibWithCppBuilderClang.git

Notes

In the examples, the FMT_HEADER_ONLY macro is defined for all platforms/configurations in order to select the header only mode of {fmt}. It also should works with a compiled versione of the library, but there are some problems with the dynamic RTL versions of Embarcadero's clang based compilers' libraries. See the RSP-34592 problem report.

The Console examples emit the text in UTF8, while those used in the GUI mainly treat UNICODE.

Please, don't forget to add the fmt\include directory to search-paths for header files in the project settings for all platforms/configurations.

1

Also note that, since {fmt} looks for the _isatty function which does not exist on the C++ Builder, you must put

#define _isatty isatty

before the #include <fmt/core.h> (or set this macro in the project definitions).

Moreover, regardless you link with static or dynamic libraries, the default library set for the clang's toolchains forget to include two functions that {fmt} library uses, i.e.: __udivti3 and __umodti3. To remedy to this problem simply you have to add (somewhere in your code) the following line:

#pragma comment(lib, "compiler_rt") // __udivti3, __umodti3

or explicitly add compiler_rt.a (for bcc64) or compiler_rt.lib (for bcc32c) in the project.

Screenshots

Demo Examples/Console/Simple

3

Demo Examples/Console/Colors

4

Demo Examples/GUI/Simple

2

fmtlibwithcppbuilderclang's People

Contributors

gcardi avatar

Watchers

 avatar

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.