in

System.Data.SQLite

An open source ADO.NET provider for the SQLite database engine

Mergebin help

Last post 11-08-2007 7:32 PM by Kairos. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 11-07-2007 1:45 PM

    • Kairos
    • Top 500 Contributor
    • Joined on 12-04-2006
    • Posts 5

    Mergebin help

    First, I must say I love your wrapper.  I unfortunately fell into a situation where I had to use sqlite2.x.  I had to modify the original SQLite.net project to add some specific functions for my project.  I figured as long as I'm recompiling the source I would make it into a single dll like System.Data.SQlite using merebin.

    I added the postbuild task to the .net assembly to build that  builds the merge_full.h file.
    I set the output path to bin\
    I added the postbuild task to the sqlite2 project to run mergebin with the  /S:.clr
    I set the output file to $(ProjectDir)..\bin\SQLite.NET.DLL
    Last I added #include "merge_full.h" to my main.c file.

     
    When I try to build it I get 2 errors. 

    Error    10    error LNK2019: unresolved external symbol __T referenced in function __CorDllMainStub@12    main.obj   
    Error    11    fatal error LNK1120: 1 unresolved externals    c:\Projects\Providers\bin\SQLite.NET.DLL   

    Is there something I am missing?  Should I be adding the merge_full.h to every .c file? 

  • 11-08-2007 7:32 PM In reply to

    • Kairos
    • Top 500 Contributor
    • Joined on 12-04-2006
    • Posts 5

    Re: Mergebin help

    Never mind.  I forgot to include tchar.h.  Great little tool you created there.  Thanks. 

Page 1 of 1 (2 items)
Powered by Community Server (Commercial Edition), by Telligent Systems