Using Code warrior on Windows with TCL/TK

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Using Code warrior on Windows with TCL/TK

4,163 次查看
Nitor
Contributor I
Hi All,
            I'm currently developing a C application with an embedded tcl interpreter. The problem i'm having is that Codewarrior accepts the windows tcl header files but won't allow me to add windows tcl library files? , I can however add Linux tcl library files which CodeWarrior obviously cannot understand ?
 
My question is, does anyone know why CodeWarrior does not allow me to add windows library files to my code ?
 
Regards,
 
Nitor
标签 (1)
0 项奖励
回复
3 回复数

648 次查看
J2MEJediMaster
Specialist I
I'm assuming you're trying to add a GUI to your interpreter. If your application started life as a console only app, the only support that CodeWarrior adds to the program is for the C run-time and any hooks to the operating system to support a console. To add windows features, the program needs to be made into a Windows app. That or you need to configure the IDE to recognize the file extension that the tcl windows libraries use a valid input file.

---Tom
0 项奖励
回复

648 次查看
Nitor
Contributor I
Hi Tom, Thanks for your reply. I tried setting up a new file type , using File Mappings in the target settings panel. This allowed the IDE to recognise the tcl84.lib (windows file) but I could not compile the file. I can also add the linux lib84.a file and compile but when linking it reported that it could not understand the lib84.a file. As Codewarrior is relatively new to me and I have had no problems integrating tcl and c in Visual C++, can you tell me how to integrate tcl into a CodeWarrior C application ? The aim being that I can monitor an application , using Tcl/tk in Windows, whilst executing using the QUICCstart MPC8248 Evaluation system. Regards, Nitor
0 项奖励
回复

648 次查看
J2MEJediMaster
Specialist I

As far as using TCL with CodeWarrior, first take a look at this FAQ. Next, you should consult the IDE_Automation_Guide.pdf in your CodeWarrior installation folder. If that isn't there, you can either try running the CW installation again and install the documentation, or go to the Freescale web site for it. Just to save you some trouble, I'm uploading a copy of the manual with this posting.



Message Edited by J2MEJediMaster on 2007-05-09 10:15 AM

IDEWINAUTOUG.pdf

Message Edited by t.dowe on 2009-10-06 09:05 AM
0 项奖励
回复