Marcus
Marcus

Reputation: 127

C++ or C compiler that I can call from a program(DLL)

What is a C or C++ compiler that is a DLL that I can call and compile a C or C++ program from through a DLL.
What I want to do is call a function through a DLL that I will use in my C or C++ program(since they both use DLLs) and it will compile the files that I listen in the method or whatever.
I just want a library that I can compile an exe with(or a .app, that would be nice).

Upvotes: 0

Views: 197

Answers (3)

Max Lybbert
Max Lybbert

Reputation: 20041

Clang is the first thing that comes to mind. The second thing is TaskGraph, which is nothing more than a template-based way of wrapping GCC (unfortunately, TaskGraph doesn't have a clear license; you'll need to talk tot he maintainers).

Upvotes: 0

mechanicker
mechanicker

Reputation: 986

From my little understanding of the question, your best option is Clang. I found the following links useful and have started learning it myself - to build a nice C++ cross reference tool to replace my usage of gtags/cscope for C++ code

Clang - library based architecture

On using libclang through Python

Clang - The guts

Upvotes: 2

Robert S. Barnes
Robert S. Barnes

Reputation: 40558

You might want to try a compiler like lcc. If it's a comercial project they will probably provide you with a dll version...

Upvotes: 0

Related Questions