How run program with RDMD when code need load C++ code compiled by DMC to .obj?
Marcone
marcone at email.com
Fri Jan 3 06:24:07 UTC 2020
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]
More information about the Digitalmars-d-learn
mailing list