Reputation: 127
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
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
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
Upvotes: 2
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