January 03, 2020 How run program with RDMD when code need load C++ code compiled by DMC to .obj? | ||||
---|---|---|---|---|
| ||||
Using dmd run compile very whell: dmd Program.obj cpp.obj But with rdmd not work. |
January 03, 2020 Re: How run program with RDMD when code need load C++ code compiled by DMC to .obj? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Marcone | 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] |
Copyright © 1999-2021 by the D Language Foundation