AnsweredAssumed Answered

How to link the .dlb file created by  c++ project

Question asked by Jia on Aug 9, 2011
Latest reply on Aug 9, 2011 by Jia



Now I have some questions about linking to the library file(.dlb).I have a project (just call it libproj)that builds a library,and I have a main project(call it mainproj) that builds my executable file.The mainproj wants to link the library built by libproj,in fact, it call the function inside the library.I do this in the straightforward way that add the library built by libproj to my mainproj folder.


The mainproj is consisted of c source files and head files,but the libproj is consisted of c++ source files and head files.Then there is an error:

     [Error li1021]  The following symbols referenced in processor 'p0' could not be resolved:
             'function [_function]' referenced from '.\Debug\main.doj'

     Linker finished with 1 error
     cc3089: fatal error: Link failed

I konw this indicate that the mainproj is unsuccessful to link to the library.If the libproj is also consisted of c source files,it could link to the library successfully.I'm stuck...


How can a C project link to the .dlb file built by  a C++ project?