Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 928957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T20:05:36+00:00 2026-05-15T20:05:36+00:00

Has any one compiled lib x264 using CLI backend for gcc compiler? (Compiled x264

  • 0

Has any one compiled lib x264 using CLI backend for gcc compiler? (Compiled x264 into .net dll)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T20:05:37+00:00Added an answer on May 15, 2026 at 8:05 pm

    Are you using C99 features? If not, Visual C++ with the /clr:pure option should do the trick. You will need a little bit of C++/CLI mixed in to define your entrypoints that other .NET projects can call, but those can be in completely separate files (you can share entire C-only source files with native projects).

    EDIT: Basic guide to making this work:

    • In Visual Studio, create a C++/CLI Class Library project
    • Add all your C source files to the project
    • In Project Configuration, set the include path so your headers are found
    • In Project Configuration, also set “Use of Common Language Runtime” to /clr:pure
    • In the .cpp file created by the new project wizard, add #include directive for the header files which prototype the functions you want to use.
    • In the ref class created by the new project wizard (in the aforementioned .cpp file), add some functions (maybe static functions) which call your C library functions.
    • Compile, add this .DLL as a reference of your C# project, and enjoy

    As a hint, instead of creating a forwarding function in the ref class for every function in the library, you may want to make functions that do useful work (for the particular definition of useful for your particular project) by calling a bunch of library functions.

    You’ll probably want to get comfortable with the marshal_as template which is good for converting .NET System::String into C strings and back again.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Do any one has any idea from where the below $ isUserLoggedInor $hideRegisterLink variable
Assuming that one event has multiple handlers, if any of event handlers throw an
Has anyone compiled, or know of a pre-compiled, libnoise for MacOS X 10.6? It
Has anyone seen or compiled benchmarks comparing declarative (XML) versus programmatically created UI's in
Has anyone ever run into this issue before? Sometimes the string displays, sometimes half
Has anyone compiled ffmpeg 0.6.1 for Solaris 10 sparc? I'm getting the following errors:
I compiled a static library in xcode, it contained just one .c source file:
Has anyone made a simple DLL for Windows, so i can just save raw
Suppose that I compiled a dynamic library (Windows DLL and/or Linux shared object file,
I'm trying to build a shared library using gcc 4.6 on Linux, which is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.