|
|
How statically link lcc compiled DLL with Microsoft Visual C++?
I think it might be procedure looks like used than link VC++ compiled
DLL with lcc (pedump + buildlib) but with another tools. Unfortunately
I did not find any information about.
|
|
0
|
|
|
|
Reply
|
slava
|
2/12/2008 1:18:14 PM |
|
"slava.pnp@gmail.com" <slava.pnp@gmail.com> writes:
> I think it might be procedure looks like used than link VC++ compiled
> DLL with lcc (pedump + buildlib) but with another tools. Unfortunately
> I did not find any information about.
Something does not fit the picture. You do not link a DLL statically
to a system. What you might want is building a static library and link
against it, that is easy done. Just build the static library with
lcc-win32 and then just add the static library to the link stage of
the MSVC project.
Regards
Friedrich
--
Please remove just-for-news- to reply via e-mail.
|
|
0
|
|
|
|
Reply
|
Friedrich
|
2/12/2008 4:35:34 PM
|
|
On Feb 12, 2:18 pm, "slava....@gmail.com" <slava....@gmail.com> wrote:
> I think it might be procedure looks like used than link VC++ compiled
> DLL with lcc (pedump + buildlib) but with another tools. Unfortunately
> I did not find any information about.
I found answer by myself. One should convert lcc .lib files to
msvc .lib using Microsoft LIB tool. For example "LIB /
OUT:some_lcc_dll_msvc.lib some_lcc_dll.lib", where some_lcc_dll.lib
is .lib file came with lcc DLL and produced some_lcc_dll_msvc.lib will
be used with MS LINK for implicit linking lcc DLL.
|
|
0
|
|
|
|
Reply
|
slava
|
2/13/2008 9:06:38 AM
|
|
On 12 =C6=C5=D7, 17:35, Friedrich Dominicus <just-for-news-fr...@q-software-=
solutions.de> wrote:
> "slava....@gmail.com" <slava....@gmail.com> writes:
> > I think it might be procedure looks like used than link VC++ compiled
> > DLL with lcc (pedump + buildlib) but with another tools. Unfortunately
> > I did not find any information about.
>
> Something does not fit the picture. You do not link a DLL statically
> to a system. What you might want is building a static library and link
> against it, that is easy done. Just build the static library with
> lcc-win32 and then just add the static library to the link stage of
> the MSVC project.
>
> Regards
> Friedrich
>
> --
> Please remove just-for-news- to reply via e-mail.
I mean implicitly link to a lcc compiled DLL. I don't have source
code, I only have a header, DLL and .lib file. But linking with MSVC++
using that .lib file is impossible.
|
|
0
|
|
|
|
Reply
|
slava
|
3/4/2008 3:13:47 PM
|
|
"slava.pnp@gmail.com" <slava.pnp@gmail.com> writes:
>
> I mean implicitly link to a lcc compiled DLL. I don't have source
> code, I only have a header, DLL and .lib file. But linking with MSVC++
> using that .lib file is impossible.
I see that is something completly different. The DLL was compiled with
lcc-win32 and you know like to use it, but you do not have access to
the sources. Then you have to use LoadLibrary and GetProcAddress to
fetch out the functions you like to call. You just have to see that
you use the proper name from the DLLs you can check the names with the
pedump utilitiy.
Regards
Friedrich
--
Please remove just-for-news- to reply via e-mail.
|
|
0
|
|
|
|
Reply
|
Friedrich
|
3/5/2008 5:26:35 AM
|
|
|
4 Replies
158 Views
(page loaded in 0.069 seconds)
Similiar Articles: Lcc and Windows 7 - comp.compilers.lcc... There are problems with lcc-win64, and I have a missing dll problem ... "On 32-bit Windows, the lcc C compiler is ... How to use MATLAB R2007b with Microsoft Visual ... OpenGL SDK for windows - comp.graphics.api.opengl... are used to statically link the C(++) code to the statically loaded dll. ... simulink 7.6 (r2010b) and visual c++ 2010 compiler ... the following combination: Microsoft Visual ... mex and intel compiler - comp.soft-sys.matlab... compiler: [1] Intel C++ 11.1 (with Microsoft Visual C++ 2008 SP1 linker) in C:\Program Files\Intel\Compiler\11.1\060\ [2] Lcc ... MATLAB\R2010A\BIN\MEX.PL: Error: Link of ... Static Linking Problem - comp.unix.programmerPrograms that link statically don't get some dynamic ... the program I receive several errors from compiler ... hp.hpux I included the ... LNK2019 static link -- visual c ... BUG: simulink 7.6 (r2010b) and visual c++ 2010 compiler - comp ...... to link Simulink with the Visual C++ 2010 Express compiler ... visual c++ 2010 compiler - comp ... Compiling MCR C++ dll ... lcc C compiler is installed ... Microsoft Visual ... How to get a .lib from .dll - comp.lang.asm.x86... your compiler / assembler never looks at these at all...and, as you may have noticed from being able to link C ... which is Microsoft Visual C++'s DLL ... load a dynamic link ... loadlibrary - function not found - comp.soft-sys.matlabThe DLL was compiled from C code by the provider. ... contact Technical Support use the Contact Us link ... function not found - comp.soft-sys.matlab Visual ... x86-64 and calling conventions - comp.compilersThe LCC book, "A Retargetable C compiler: Design and Implementation ... Microsoft Visual C++ 2008 SP1 Redistributable Package ... How to determine DLL Export Prototype ... Free LAPACK for Intel Fortran 8 on Windows? - comp.lang.fortran ...The compiler we're using is Intel Visual Fortran (version 8, though I ... to make it accessible from a dll and ... Many people do this using Intel Visual Fortran and Microsoft ... Creating static libs to use in mex - comp.soft-sys.matlab ...The first time the compiler sees this function ... Static library created from MASM to link to Visual C++ ... MEX-Files to Use 64-Bit API :: Creating C/C++ and ..... Microsoft ... Regular DLLs Statically Linked to MFC - Microsoft Corporation ...A regular DLL statically ... use of DLLs (C, C++, Pascal, Visual Basic, and so on); it does not have to be an MFC application. The DLL can link to ... on the compiler command ... How to link a DLL statically? - Microsoft Corporation: Software ...Bryan: 1. OK, if these are the only exports from the DLL, it may be possible to make it compiler independent. But why do simple exports like this require ... 7/25/2012 7:39:51 AM
|
|
|
|
|
|
|
|
|