03-10-2010
Custom libraries possible on AIX 4.2 ?
I had started writting my own custom libraries on an AIX 4.2. Before finishing, I wanted to do a very simple test. So I wrote the followings:
test.sh#!/bin/ksh
. testlib.sh
ZZ=testz "aa" "bb"
echo "$ZZ"
exit 0
testlib.shtestz () {
return "$1$2"
}
When I ran my test.sh, I got an error message saying :
test.sh[3]: aa: not found.
According to my book where I read about creating custom libraries, this should work. Are custom libraries allowed on AIX 4.2 or did I understood wrong about how to do it ?
10 More Discussions You Might Find Interesting
1. Programming
I am compiling code which produces .a and .la libraries. How can I produce .so libraries? I know that gcc -shared does but how? (2 Replies)
Discussion started by: thalex
2 Replies
2. Programming
I can not locate package sys/mkdev.h on HP-UX or Linux. Is it a special package or something? (9 Replies)
Discussion started by: laila63
9 Replies
3. IP Networking
How is Libnet and libpcap are useful in sending a packet through DLL layer
and sniff network layer?
and how sinffers are used to track ip adresses provided Mac adresses? (1 Reply)
Discussion started by: netsavy
1 Replies
4. AIX
Hi All,
I'm facing the following issue with my shared libraries in AIX.
memory related calls such as memset, memcpy, malloc etc are failing miserably.
there is something wrong with stack/memory which i can't guess.
i've used the following flags to build my libraray:
ld -G... (0 Replies)
Discussion started by: abhinav05252
0 Replies
5. UNIX for Dummies Questions & Answers
I am slowly ploughing my way through the list of links to on-line tutorials you provided to newbies. I for one am grateful for such a comprehensive list, so first of all thank you for that.
What i cannot seem to find, is information on C++ libraries:
The two links on libraries in your list... (0 Replies)
Discussion started by: pil888
0 Replies
6. Shell Programming and Scripting
Hello,
I need to use two different libraries like /usr/local/bin/expect and /usr/bin/ksh at the same script. Is it possible? (4 Replies)
Discussion started by: fozay
4 Replies
7. AIX
I have created a .bff package for an app to tbe installed on AIX servers across regions. I am pretty new to the AIX mode of packaging using mkinstallp but I have been able to get the same done. I installed the same on the server in which i created the package and the application was deployed... (9 Replies)
Discussion started by: jobbyjoseph
9 Replies
8. Programming
I'm a rookie to C and i'm looking for some libraries to learn,something likes the C++ STL or Boost ,does any1 can tell me some of them?Thanks a lot:)
Eric (3 Replies)
Discussion started by: homeboy
3 Replies
9. AIX
Hello guys, I have a trouble when running an application in AIX, I've compiled and the
LIBRARY_PATH seems ok, but I get the following message:
rtld: 0712-001 Symbol __pthread was referenced
from module main_app(), but a runtime definition
of the symbol was not found
ldd... (4 Replies)
Discussion started by: edgarvm
4 Replies
10. AIX
In my .profile, my prompt is set like this:
set -o vi
PS1=`logname`@`hostname -s`:'$PWD>'
Is there a way to show what the history number would be of the command I'm typing in the prompt? For example, I frequently run commands then run 'history' to pull up the history number of a command... (2 Replies)
Discussion started by: ptrotter
2 Replies
LEARN ABOUT PLAN9
expackf
expackf(3alleg4) Allegro manual expackf(3alleg4)
NAME
expackf - Using custom PACKFILE vtables. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
Example expackf
DESCRIPTION
This program demonstrates the use of the packfile functions, with some simple tests.
The first test uses the standard packfile functions to transfer a bitmap file into a block of memory, then reads the bitmap out of the
block of memory, using a custom packfile vtable.
The second test reads in a bitmap with another custom packfile vtable, which uses libc's file stream functions.
The third test demonstrates seeking with a custom vtable.
The fourth test reads two bitmaps, and dumps them back into a single file, using a custom vtable again.
Tools
SEE ALSO
ASSERT(3alleg4), BITMAP(3alleg4), END_OF_MAIN(3alleg4), PACKFILE(3alleg4), PACKFILE_VTABLE(3alleg4), SCREEN_H(3alleg4), SCREEN_W(3alleg4),
alert(3alleg4), allegro_error(3alleg4), allegro_init(3alleg4), allegro_message(3alleg4), blit(3alleg4), clear_bitmap(3alleg4), destroy_bit-
map(3alleg4), file_size_ex(3alleg4), font(3alleg4), install_keyboard(3alleg4), key(3alleg4), load_bmp_pf(3alleg4), load_pcx(3alleg4),
load_pcx_pf(3alleg4), load_tga_pf(3alleg4), pack_fclose(3alleg4), pack_fopen(3alleg4), pack_fopen_vtable(3alleg4), pack_fread(3alleg4),
pack_fseek(3alleg4), readkey(3alleg4), save_bmp_pf(3alleg4), save_tga_pf(3alleg4), screen(3alleg4), set_color_depth(3alleg4),
set_gfx_mode(3alleg4), text_height(3alleg4), textprintf_centre_ex(3alleg4), textprintf_ex(3alleg4)
Allegro version 4.4.2 expackf(3alleg4)