Git Product home page Git Product logo

libbfio's Introduction

libbfio's People

Contributors

joachimmetz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

libbfio's Issues

MacOS: clang complaining about implicit declaration of function 'memory_free'

Admitting that no error results when building this library on Ubuntu; nevertheless, the following error is produced when kicking off a build for a modern MacOS (12) via pip: pip install libesedb-python

libbfio/libbfio_file.c:273:3: error: implicit declaration of function 'memory_free' is invalid in C99 [-Werror,-Wimplicit-function-declaration]

Line 273 of the stated file indeed contains a call to memory_free(), and we see several definitions for this function in the included header file, memory.h; however, none of these definitions appear to be valid for the macOS using clang.

/* Memory free
 */
#if defined( HAVE_GLIB_H )
#define memory_free( buffer ) \
  g_free( (gpointer) buffer )

#elif defined( WINAPI )
#define memory_free( buffer ) \
  ( buffer == NULL ) ? TRUE : HeapFree( GetProcessHeap(), 0, (LPVOID) buffer )

#elif defined( HAVE_FREE )
#define memory_free( buffer ) \
  free( (void *) buffer )
#endif

Building Using Microsoft Visual Studio

The provided sln file is wrong concerning libcfile because libcfile_stream.c is no longer existing. Removing it from the libcfile tree project leads to a successful compilation.

Moreover, before being able to compile from VS, it's needed to ./configure in order to generate types.h and config.h which is not very practical when dealing with automated builds... What could be the workaround here?

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.