Re: Tangent on a Tcl advantage

From: Erik Leunissen (look_at_the.footer.invalid)
Date: 12/13/04


Date: Mon, 13 Dec 2004 11:41:52 +0100

Helmut Giese wrote:

> ...
> Well, it is. However, the format of lib files is vendor specific.
> If you prefer using the GCC compiler, try building tclstub84.lib with
> it and then linking should work.
> ...

Helmut,

This is interesting. It also confuses me a bit. I'd really like to
understand your solution. Did you mean that the following works:

- build tclstub84.lib, using GCC
- compile "MyTclExtension" using GCC into "MyTclExtension.obj"
- build the shared lib "MyTclExtension.dll", linking
"MyTclExtension.obj" against the GCC built tclstub84.lib, using GCC
- load "MyTclExtension.dll" (GCC built) into a tclsh.exe (MSVC built)

The reason I ask is that the above implies:

- that one *cannot* link libs or object files built with different compilers
- that one *can* load into an app a shared lib that has been built with
another compiler than the one with which the app was built.

This appears contradictory to me at first glance, but might be due to my
limited understanding of details regarding linking and loading (or I
just misunderstood what you meant).

Thanks in advance for your help,

Erik Leunissen

-- 
   leunissen@       nl | Merge the left part of these two lines into one,
e.          hccnet.   | respecting a character's position in a line.


Relevant Pages

  • base libobjc on 5.4 p2
    ... the base gcc provide with 5.4#p2 is a 3.4.2. ... It seems this lib is only provide: ... options) to allow us to use the base compiler provide with FreeBSD. ... require to install a gcc port to have this features enables (and so, ...
    (freebsd-questions)
  • Re: Any OpenSSH for sunos4?
    ... Those mods were included in 3.8x, so if nothing else works then I'd ... This version built just fine. ... configure:1412: checking for gcc ... configure:1721: checking for C compiler default output file name ...
    (comp.security.ssh)
  • Re: Apparent bug in Win32::API if function returns a float or a double
    ... I'm using the MinGW prot of gcc as my Windows compiler. ... double ret; ... Then built the dll (and the import lib, ...
    (comp.lang.perl.modules)
  • Re: r8169.c
    ... > Did you change the compiler as well? ... it would be nice to know if the system performs correctly when built with ... I went ahead and remotely rebuilt using gcc 2.95.4 and upon reboot it ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: Any OpenSSH for sunos4?
    ... Those mods were included in 3.8x, so if nothing else works then I'd ... This version built just fine. ... The gcc is *WAY* out of date. ... configure:1721: checking for C compiler default output file name ...
    (comp.security.ssh)