Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

c_sync wrapper DLL does not export any functions #315

Closed
samkristoff opened this issue Dec 15, 2012 · 0 comments
Closed

c_sync wrapper DLL does not export any functions #315

samkristoff opened this issue Dec 15, 2012 · 0 comments
Milestone

Comments

@samkristoff
Copy link

When building the C_Sync wrapper on windows using VS2010 a libfreenect_sync.dll is created by one of the build in VS projects, however no functions are exported so the DLL cannot be called from another application.

I was able to export functions by adding the following to libfreenect_sync.h:

/// If Win32, export all functions for DLL usage
#ifndef _WIN32
  #define FREENECTAPI_SYNC /**< DLLExport information for windows, set to nothing on other platforms */
#else
  /**< DLLExport information for windows, set to nothing on other platforms */
  #ifdef __cplusplus
    #define FREENECTAPI_SYNC extern "C" __declspec(dllexport)
  #else
    // this is required when building from a Win32 port of gcc without being
    // forced to compile all of the library files (.c) with g++...
    #define FREENECTAPI_SYNC __declspec(dllexport)
  #endif
#endif

and then adding "FREENECTAPI_SYNC" (without quotes) in front of each function I wanted to export in libfreenect_sync.c

I'm not sure if there is a reason this is not included by default so I'll defer to someone with more knowledge of the code.

@piedar piedar modified the milestones: v0.4.1, v0.4.0 Feb 3, 2014
@piedar piedar closed this as completed in 8c59ba2 Mar 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants