Code Monkey home page Code Monkey logo

daggen-for-windows's Introduction

Daggen-for-Windows

A basic port of Daggen for Windows machines. Link to original repository here.

Requirements

  • Visual Studio 2019
  • Build tools for Visual Studio 2019

Compiling

You will need to add the pre-processor flag _CRT_SECURE_NO_WARNINGS to your project properties. See below for navigation.

Properties>>C/C++>>Preporocessor>>Preprocessor Definitions>> _CRT_SECURE_NO_WARNINGS

Make sure that you select "All Configurations" from the configuration option and x64 from the Platform option.

Compile in Release mode for x64 platforms.

Warning

Daggen uses ctime and fopen. ctime takes a time_t reference as it's argument. For large values of time_t it can cause undefined behaviour. From the ctime description;

This function returns a pointer to static data and is not thread-safe. In addition, it modifies the static tm object which may be shared with gmtime and localtime. POSIX marks this function obsolete and recommends strftime instead. The behavior may be undefined for the values of time_t that result in the string longer than 25 characters (e.g. year 10000)

fopen has been deprecated by Microsoft.

I replaced fopen and ctime with fopen_s and ctime_s respectively. You no longer need to add _CRT_SECURE_NO_WARNINGS to your preprocessor definitions.

usage

Once compiled, daggen can be used by navigating your command window to where daggen.exe is located and carrying out the following command;

daggen.exe -n 10 -o test.txt

The .exe name will be whatever you called your Visual studio project. If you called it daggen_win the you will run the following command;

daggen_win.exe -n 10 - o test.txt

Future Work

  • Replace ctime
  • Replace fopen

daggen-for-windows's People

Contributors

ozyozk avatar

Watchers

James Cloos avatar  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.