Tiny Core Extensions > TCE Talk

Creating TCL extention in simple steps !

(1/5) > >>

Pats:
I develop app in Win platform. I want to convert one of the accounting app  - say xyz.cpp from Win2k ( written in C++)  into TCL ext - which I should be able to use in TCLs - say v2.4 or may be v2.6.
So how to go abt it ?
Suppose for example, how to convert a simple app -Hello World - written in Win C++ ti TCL ext which when loaded and run thru TCLs terminal will output - Hello World -  !
So being a layman in Linux and TCL development,but pl show me the path to the message thread already answered here or better still explain here in a step-by-step Tutorial format - if possible !
Thanks !
~ Pats

curaga:
Do you wish to use wine or do a true linux port?

Either way, we have good instructions in the wiki for the extension part: http://tinycorelinux.com/wiki/tiki-index.php?page=Creating+Extensions

To this case mainly part 3, creating a tcz, would apply. It assumes your directory hierarchy is in /tmp/package.

Pats:
Since I have taken a plunge in Linux waters recently , I want a pure Linux only app ext on Linux platform - no WINE !
Off-cource I can compile and run small .c or .cpp programs in Linux, but that is all, not much exposure to nitty-gytties of Linux development. :)
Anyhow I will go thru the link you have given and revert back here in case of difficulties - which I vary much is expecting ! :)
~ Pats

curaga:
Porting an app from win to lin is a very complex topic. You're likely to find more info on that via google.

In short, if you only used ANSI/whatever the standard for C++ is, and no windows-only apis, it just might compile from the start on linux. The only things to add would be ifdef'ed sections for used paths, for example.

But, it's never that easy in practise :P


This book (Advanced Linux Programming) is available online for free:
http://www.advancedlinuxprogramming.com/

Pats:

--- Quote ---Either way, we have good instructions in the wiki for the extension part: http://tinycorelinux.com/wiki/tiki-index.php?page=Creating+Extensions

--- End quote ---
Thanks !
Quite complicated process for a new entrant to linux like me !
But I have to go thru that all, I think - it would have been a great help for newbees if the link above would have a simple practical step-by-step example ( like Hello World ) to build a TCL sample .tce or .tcz  !

Any-how, I sounds a little lazy to be spoon-feed, I think !  ;)


--- Quote ---This book (Advanced Linux Programming) is available online for free:

--- End quote ---
Yah , this seems to be a good link. Wil go thru this book after the download !

--- Quote ---But, it's never that easy in practise
--- End quote ---
Correct, sometime back, I had developed a Automated Q/A  bank app for a nearby school management in Linux. So that little experience may help me to understand Linux Programming,I hope !
Anyhow , thanks for the guidance and your lots of patience to un-tiredly explain ( in a down-to-earth fashion ) to so many newbees like me !

~ Pats

Navigation

[0] Message Index

[#] Next page

Go to full version