POSIX Headers (from MinGW project) in Visual Studio 2013

后端 未结 2 1071
执笔经年
执笔经年 2021-01-26 23:26

(Continues from: Porting from Code::Blocks to Visual Studio 2010 - I\'ll remove this if it\'s against StackExchange\'s formatting rules)

I\'m trying to port an

2条回答
  •  余生分开走
    2021-01-26 23:56

    I know this is an old post, but I had a similar problem with the time related headers. This was my solution.

    This repository provided an implementation of those time related functions. They also appear to have an automatically exported github project with the same files, in case that original repository link stops working: https://github.com/zhouheng/madp-win/tree/master/src/include/sys

    I took their three files: time.h, times.h and times.cpp, dropped them into a folder called "sys/" within my project directory, and then replaced all references to:

    #include 
    

    to use:

    #include "sys/time.h"
    

    for local file reference. So far I have not encountered any problems. Please note this is not my code and the original license(s) of the code is LGPL.

提交回复
热议问题