Code Monkey home page Code Monkey logo

modulehelloworld's Introduction

ModuleHelloWorld

This is a very basic example of how to get C++20 modules to work with CMake and the latest Visual Studio Preview.

It'll allow you to start experimenting with modules right now, but it does come with many limitations. Do not use this in any production environment, and instead wait for compilers and build tools to be updated with proper support.

Requirements and limitations

  • Visual Studio 16.8.0 Preview 3 or higher for basic module support.
  • Visual Studio 16.8.0 Preview 4 or higher for module partition support.
  • Only the Visual Studio generator in CMake will work. You cannot for example use Ninja with MSVC. MSBuild has to do most of the work since CMake does not actually support modules (yet).
  • Since we rely on MSBuild's default behaviour, the module interface file extensions have to be either .ixx or .cppm. Extensions like .mpp will not work.

modulehelloworld's People

Contributors

rick-de-water avatar

Stargazers

Gemuele (Gem) Aludino avatar Lilian Anatolie Moraru avatar  avatar  avatar  avatar  avatar Vlad2001MFS avatar  avatar Xinlei Wang avatar Denis Chernikov avatar Particle_G avatar Vyacheslav avatar  avatar Nicolas Jakob avatar Patrick Torgerson avatar Nicolas Phister avatar Kot C avatar Marie avatar Serhiy Shkvyra avatar  avatar Kobi Cohen-Arazi avatar  avatar Marco Craveiro avatar  avatar R Donovan avatar Josh Kennedy avatar Stephan Seitz 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.