compilation issues in a shared library project

Jonathan Villa via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jun 7 14:11:36 PDT 2015


On Sunday, 7 June 2015 at 19:17:51 UTC, Ali Çehreli wrote:

>
> Could it be a linking issue? What is the exact compilation line 
> (and the linking line, if separate)?
>
> Ali

Compilation line:

Current dictionary: C:\Users\JVortex\Documents\Projects\DataTable2
dmd.exe -O -release "DataBlockHeader.d" "DataBlock.d" 
"DataTable2.d"   
"-L/IMPLIB:C:\Users\JVortex\Documents\Projects\DataTable2\bin\Release\DataTable2.lib" 
"-odobj\Release" 
"-ofC:\Users\JVortex\Documents\Projects\DataTable2\bin\Release\DataTable2.dll" 
-w -vcolumns

OPTLINK (R) for Win32  Release 8.00.17
Copyright (C) Digital Mars 1989-2013  All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
obj\Release\DataTable2.obj(DataTable2)
  Error 42: Symbol Undefined _D6Object7__ClassZ
obj\Release\DataTable2.obj(DataTable2)
  Error 42: Symbol Undefined _D14TypeInfo_Class6__vtblZ
obj\Release\DataTable2.obj(DataTable2)
  Error 42: Symbol Undefined __d_newclass
obj\Release\DataTable2.obj(DataTable2)
  Error 42: Symbol Undefined _D6object6Object6toHashMFNbNeZk
obj\Release\DataTable2.obj(DataTable2)
  Error 42: Symbol Undefined _D6object6Object8opEqualsMFC6ObjectZb
obj\Release\DataTable2.obj(DataTable2)
  Error 42: Symbol Undefined _D6object6Object5opCmpMFC6ObjectZi
obj\Release\DataTable2.obj(DataTable2)
  Error 42: Symbol Undefined _D6object6Object8toStringMFZAya
--- errorlevel 7
Exit code 7

In Xamarin Studio there's some linking info in 
Options->Compiling->Linking:
Config: Release; Platform: Any CPU.
Output Dir: bin\Release
Compile target: Shared library
Output file: DataTable2
Libraries: (empty)
(NOT CHECKED) Link in static/shared libraries from nested 
dependencies
Additional linking options: (empty)

Is that the info you're asking for? If not, please tell me.


More information about the Digitalmars-d-learn mailing list