Home > Archive > Tcl > June 2005 > tk_FindPhoto in activetcl 8.4.6
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
tk_FindPhoto in activetcl 8.4.6
|
|
| mike.zebrowski@avistainc.com 2005-06-06, 8:58 pm |
| I'm trying to use critcl to compile the fast alpha blending example
found at http://wiki.tcl.tk/10517. I have just the critcl specfic parts
in a single file.
I have ActiveTCL 8.4.6 installed on a winXP machine.
I have minGW installed so that I can use gcc.
I included the following line to point to the header files:
critcl::cheaders -I[file normalize C:/Tcl/include]
At the command prompt, using the critcl starkit, I type:
tclkit critcl.kit -pkg alphablend.tcl
I get the error:
undefined reference to `_imp__Tk_FindPhoto'
When I look in the helpfiles, Tk_FindPhoto says to include the file
<tkPhoto.h> . However, when I go to look for that particular header
file, it is nowhere to be found.
Can anyone help?
Thanks,
Mike Zebrowski
| |
| Helmut Giese 2005-06-06, 8:58 pm |
| Hello Mike,
>
>I get the error:
>undefined reference to `_imp__Tk_FindPhoto'
>
>When I look in the helpfiles, Tk_FindPhoto says to include the file
><tkPhoto.h> . However, when I go to look for that particular header
>file, it is nowhere to be found.
it appears that - for your convenience :) - this function has been put
into the stubs table. Try #including tkdecls.h.
HTH
Helmut Giese
BTW: grep _really_ is a friend.
| |
| mike.zebrowski@avistainc.com 2005-06-06, 8:58 pm |
| I tried including tkDecls.h, but I get the same error.
It seems that the error occurs when critcl tries to create the .dll
file, so the header information is being found, but something is going
wrong when the link occurs.
Mike Zebrowski
| |
| mike.zebrowski@avistainc.com 2005-06-06, 8:58 pm |
| I figured out the problem.
I had to configure critcl to use tk (along with tk_stubs)
I added the following two lines and everything started to work:
::critcl::config tk 1
::critcl::config I C:/Tcl/include
Mike Zebrowski
|
|
|
|
|