Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
generator-c-c-plus-plus-project
Advanced tools
Yeoman generator for a C/C++ project: comes with Automake & Autoconf for 'Automake C++ Tutorial'
Yeoman generator for Automake Autoconf C/C++ Project for "Automake C++ Tutorial" - lets you quickly set up a C/C++ project with Automake and Autoconf.
This is a template project which I used in the "Automake C++ Tutorial" at http://youtu.be/7hBag3hr0xU
Install yo
, grunt-cli
, bower
and generator-c-c-plus-plus-project
:
npm install -g grunt-cli yo bower generator-c-c-plus-plus-project
Make a new directory, and cd
into it:
mkdir my-new-project && cd $_
Run yo c-c-plus-plus-project
:
yo c-c-plus-plus-project
In this section, we describe what each file does in this template and how you can modify them to your needs.
Once everything is installed, you will see a project structure like below:
├── Makefile.am # Main makefile.
├── README.md # README.md file
├── configure.ac # File of magic. Main configuration is here.
├── my_inc # Example includes directory which has a simple addition library.
│ ├── Makefile.am
│ ├── myadd.cpp # Simple addition library cpp file.
│ └── myadd.h # Simple addition library header file.
└── src
│ ├── Makefile.am
│ ├── helper.cc # Helper cc file.
│ ├── helper.cpp # Helper cpp file.
│ ├── helper.h # Helper header file.
│ └── < pkg name >.cpp # Main module cpp file.
You can generate this template project to jump start your project with a automake/autoconf based build system. It has the basic ingredients, so all you need is to replace the libraries and main file with your own code while modifying the Makefile.am's and configure.ac's with the names of your files.
In order to make everything work, go the root of project, and type:
> aclocal
> autoconf
> automake --add-missing
This should create all "configure" script along with all the Makefile's. Now, you can type
> ./configure
> make
And your project should compile. Now you are all set with a lean template to build upon.
Apache 2.0 License - © 2015 Baris Yuksel
For bug reports, feature requests and general questions, please feel free to email baris@onehundredyearsofcode.com
FAQs
Yeoman generator for a C/C++ project: comes with Automake & Autoconf for 'Automake C++ Tutorial'. Supports C too.
The npm package generator-c-c-plus-plus-project receives a total of 4 weekly downloads. As such, generator-c-c-plus-plus-project popularity was classified as not popular.
We found that generator-c-c-plus-plus-project demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.