Re: static building with mingw ?

From: Ulrich Lauther (lauther_at_mchp.siemens.de)
Date: 05/03/04


Date: Mon, 3 May 2004 08:19:42 +0000 (UTC)

mjkarki@cs.Helsinki.FI wrote:
: Ulrich Lauther <lauther@mchp.siemens.de> wrote:

: > I am trying to build a tcl/tk-8.4.6 application using mingw.
: >
: ...
: >
: > What did I do wrong?

: Good question. I don't know. I've been wrestling with similar problem
: lately. I've compiled myself Tcl84 and Tk84 with MinGW and MSYS and
: tried to compile some of my Tcl extensions with MinGW. I tried all
: kinds of different compiler/linker options and always received similar
: error messages than you have. Finally I found out that with gcc it is
: possible to do linking without other dev. libraries. This command-line
: works for me and seems to solve all linking problems:

: gcc -I C:\Tcl\include -shared -s -o test.dll test.c C:\Tcl\bin\tcl84.dll

: Notice the usage of the DLL at the end of the command.

well, thanks for your response, but linking with the dll was no problem for
me (though the resulting executable crashes :-( ).
But the problem appears, when I try to use the static libs.

-- 
	-lauther
[nosave]
----------------------------------------------------------------------------
Ulrich Lauther          ph: +49 89 636 48834 fx: ... 636 42284
Siemens CT SE 6         Internet: Ulrich.Lauther@siemens.com


Relevant Pages

  • Re: Managing the JIT
    ... decide what to jit, as in do you just jit function by function, or a ... in the case of my assembler and linker, I am currently using COFF between ... when linking code into, it allocates ... I usually compile code a "module" at a time. ...
    (comp.compilers)
  • Re: VBA and VSTO
    ... If you compile in VB6 with Global MultiUse than all you have to do is set a reference in Excel to your dll via Tools, References and you can access your functions in the dll directly. ... You will have to register the dll as well with Windows with Regsvr32, but that can be done quite simply in VBA. ...
    (microsoft.public.excel.programming)
  • Re: HOW CAN I OPEN A COM PROJECT COMPILED IN VS2005, IN VS2003?
    ... I keep getting the .exe output when I compile in the VC7. ... the General Configuration Type to be .dll in the Project Property. ... Microsoft MVP, MCSD ... instead create my own folders for file grouping... ...
    (microsoft.public.win32.programmer.ole)
  • GlobalMultiUse component breaks its compatibility !!!
    ... I have a component (ActiveX dll) with only one class in it. ... compiled, even though the binary compatibility is set, a new UUID is ... Public Property Let MyStringProp(ByVal vNewValue As String) ... Compile the project. ...
    (microsoft.public.vb.com)
  • LNK2020 using managed/unmanaged classes combination and workaround question
    ... mark 'DLL' and 'Export Symbols'). ... this is a managed class added to the DLL. ... To the Windows Forms project, ... make sure you compile everything with /clr. ...
    (microsoft.public.dotnet.languages.vc)