Add a precompiled c++ obj file to dub
user1234
user1234 at 12.ie
Sat Oct 7 23:54:50 UTC 2017
On Saturday, 7 October 2017 at 19:56:52 UTC, Fra Mecca wrote:
> Hi all,
> I am writing a backend that is partly Vibe.d and partly clucene
> in c++.
> I have some object files written in c++ and compiled with g++
> that are not considered by dub during the linking phase and
> throws `function undefined error ` every time.
>
> Is there a way to tell dub to let dmd handle that .o files?
Yes, add this to your JSON:
"sourceFiles-linux-x86_64" : [
"somepath/yourobject.o"
],
More information about the Digitalmars-d-learn
mailing list