Status: resolved Severity: minor Category: Critcl Created: 2007-10-10 Updated: 2008-02-24

ok, here it goes... i am using critcl to write an little math extension for my tcl project.. it compiles fine on linux, and now i have this cross compiler xmingwin working fine ;-) ... then, with some work i could make critcl cross compile... but, i used switch $tcl_platform(platform) to have more control over the compilation process... THE PROBLEM is critcl -target mingw32 does not set tcl_platform(platform) .. it is still unix.. so I "fixed" the problem setting this and others elements of that array when i get this ---- if {![string compare [::critcl::sharedlibext] ".dll"]} --- to be true, so i dont know if it is a bug or miss feature code:

 if {![string compare [::critcl::sharedlibext] ".dll"]} {
        set  tcl_platform(byteOrder)   littleEndian"
        set  tcl_platform(machine)     "intel"
        set  tcl_platform(os)                "Windows NT"
        set  tcl_platform(osVersion)    "5.0"
        set  tcl_platform(platform)      "windows"
        set  tcl_platform(wordSize)     "4"
 }

now it works fine, but i guess critcl should set all this variables when the target is mingw32 :-/



2007-10-25 jcw

(Changed: stat)

2008-02-24 jcw

(Changed: desc)

2008-02-24 jcw

Cross-compiles are admittedly a special case, but in general changing tcl_platform is risky. Assuming critcl2 has better support for this, I'm marking this issue resolved.

2008-02-24 jcw

(Changed: stat)

Add a comment:

Tip: add empty lines between paragraphs and indent lines to prevent reformatting.

Your name or initials: