www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - How run program with RDMD when code need load C++ code compiled by DMC

reply Marcone <marcone email.com> writes:
Using dmd run compile very whell:

dmd Program.obj cpp.obj

But with rdmd not work.
Jan 02 2020
parent Marcone <marcone email.com> writes:
On Friday, 3 January 2020 at 05:12:21 UTC, Marcone wrote:
 Using dmd run compile very whell:

 dmd Program.obj cpp.obj

 But with rdmd not work.
extern(C++) void teste(); void main(){ teste(); } OPTLINK (R) for Win32 Release 8.00.17 Copyright (C) Digital Mars 1989-2013 All rights reserved. http://www.digitalmars.com/ctg/optlink.html C:\Users\Usuario\AppData\Local\Temp\.rdmd\rdmd-Programa.d-0720C22619734DC91AEF0FECE6B21EF0\objs\Programa.exe.obj(Programa.exe) Error 42: Symbol Undefined ?teste YAXXZ (void cdecl teste(void )) Error: linker exited with status 1 Erro ao Compilar Arquivo! [Finished in 0.4s]
Jan 02 2020