till213 / moderncpp Goto Github PK
View Code? Open in Web Editor NEWModern C++ features by example code
License: MIT License
Modern C++ features by example code
License: MIT License
Hello,
I did some C++ (very few) 15 years ago (with Qt) and wanted to give a try to "Modern C++".
Working with Windows I would prefer not to install a C++ compiler and CMake but work in a virtualized environment using Vagrant https://www.vagrantup.com/ (installed using Chocolatey https://chocolatey.org/)
Here is my Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
hostname = "cpp.box"
# Box
config.vm.box = "ubuntu/impish64"
# Shared folder
config.vm.synced_folder ".", "/srv"
# Change directory to shared folder directory when connecting using vagrant ssh
config.ssh.extra_args = ["-t", "cd /srv; bash --login"]
# Setup
config.vm.provision "setup", type: "shell", inline: <<-SHELL
touch .hushlogin
if ! grep -q "cd /srv" ~/.bashrc ; then
echo "cd /srv" >> ~/.bashrc
fi
hostnamectl set-hostname #{hostname}
apt-get update --fix-missing
apt-get install -q -y build-essential libreadline-dev unzip g++ make cmake git curl vim
SHELL
# Lang
## Cpp
#config.vm.provision "cpp", type: "shell", inline: <<-SHELL
# # compiling all examples
# make
#SHELL
end
I did
vagrant up
to build the virtualized dev machine (Ubuntu Impish) and
vagrant ssh
to log in
inside the box I did
$ make
cd build && cmake ../.
-- PLATFORM="Linux"
CMake Error at src/language/CMakeLists.txt:4 (add_subdirectory):
The source directory
/srv/src/language/CMakeFiles
does not contain a CMakeLists.txt file.
CMake Error at src/templates/CMakeLists.txt:5 (add_subdirectory):
The source directory
/srv/src/templates/CMakeFiles
does not contain a CMakeLists.txt file.
-- Configuring incomplete, errors occurred!
See also "/srv/CMakeFiles/CMakeOutput.log".
make: *** [Makefile:18: cmakestep] Error 1
Any idea what is wrong?
Thanks for your help!
(You can provide a Vagrantfile for others users if you want (inspired by this one or an other one)
Kind regards
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.