Welcome, Guest. Please login or register.

Author Topic: put library in code  (Read 2260 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline kas1eTopic starter

put library in code
« on: March 01, 2005, 03:59:09 AM »
hello 2 all, one more lame question. for example i have lala.library (68k/hunk) and this kind of code:

// ----
OpenLibrary(lala.library)
using library calls
CloseLibrary(lala.library)
// ----

Well, in this code i must use inxternal lala.library. Can i create internal code from lala.library ? I mean, i do not want open external library, i just to want put all data to one executable (put library in code). Any way ? I need it for sasc/vbcc and in last case for gcc maybe. I do not have sources of this library. So, maybe any 3d party tools ? fd2pragma maybe ? Of course i can create char array from my library, after run code create file from this char, open it as library, use calls, close, erase :) but it is a mess..

sorry for poor english.
 

Offline kas1eTopic starter

Re: put library in code
« Reply #1 on: March 01, 2005, 07:10:04 AM »
these librarys as 'freeware', but too many authorsdead/leave/etc. So, it is no way to have source code (but of course these library is free).

Anyway, here is no question about LAW/RIGHT, here is technical question.
 

Offline kas1eTopic starter

Re: put library in code
« Reply #2 on: March 01, 2005, 08:41:16 AM »
well. here is example, we have:
1.little binary(20k)
2.little library(10k)
3.tool like UPX (which pack executable with adding self decrunch data + decrunch header into new exefile)

We pack exe, to 10k. And can't pack library. If, we embedding library to binary, it possible to pack all code. And it will look more compactly.

Next example, it is too many buggest amiga librarys from version to version. For example user have 1.2 version of library (it is work fine with some user programs) and i have 1.3 (it is work for me too, but for some programs from user, it is do not work, becouse problem in new library fixes/codes/etc). I am replace user library, and .. it is suxx. So, it is one more + to embedet library to binary.


ps. of course i am understand that it's not good way. but! i do not have to create big project with this kind of hack, i just want to create some little project.