06-23-2006
Compile error
Dear All
I have a program writen in C and test in Unix. Now, I am try to run this program in windows 2000. I am receiving an error [B]_getopt is not define[/B]. I will appreciate if any one can help explain to me why this problem is hapening and to slove this problem.
Thank you
10 More Discussions You Might Find Interesting
1. Programming
i tried to compile a c++ file using the g++ command:
g++ <filename>.cpp -out <output_file>
and i received the following error message:
ld.so.1: gcc: fatal: relocation error: file gcc: symbol bindtextdomain: referenced symbol not found
Killed
is it that i am using incorrectly the... (1 Reply)
Discussion started by: ldrojasm
1 Replies
2. Programming
Hi all,
I compile my c program and get following result
hrnpfc01.c:1387: stray '\' in program
hrnpfc01.c:1387: parse error before `,'
hrnpfc01.c:1388: stray '\' in program
hrnpfc01.c:1388: parse error before `,'
hrnpfc01.c:1396: stray '\' in program
hrnpfc01.c:1396: parse error before... (4 Replies)
Discussion started by: zico
4 Replies
3. Programming
Hi unix lovers,
I am getting error while compile a function which uses dlopen.
My code is
I am getting error as follows
Am I missing something? I think I am missing a lot :-)
I am using solaris.
Thanks in advance,
-Ashish (5 Replies)
Discussion started by: shriashishpatil
5 Replies
4. Programming
i was trying to compile a c program and got the error below. i need help on how to resolve this
$ make -ef putput
`if ; then echo getinf.awk ; else echo getora.awk;fi` EI.sql
`if ; then echo esql -static ; else echo esqlo8i;fi` -O -I. -c EI`if ; then echo .ec; else echo... (4 Replies)
Discussion started by: putput
4 Replies
5. Programming
hello can anyone help? :confused:
i make a C code in FreeBSD 5.4 and it succeed to run
the program requires connection to mysql server
when i try to compile it under solaris i get this error message
ld: fatal: file ./lib/libmysqlclient.so: wrong ELF machine type: EM_386
why? and how to... (3 Replies)
Discussion started by: kuampang
3 Replies
6. Solaris
Hello!
I am trying install samba 3.5.4. and following this instruction from the source package.
So, there are my steps:
1 cd ../samba-3.5.4/source3
2 ./configure (without any arguments)
and when i run make it returns error
....................................................
Compiling... (2 Replies)
Discussion started by: zhum
2 Replies
7. UNIX for Dummies Questions & Answers
I have just installed OpenBSD on a 333MHz PPC iMac G3. It has a 6GB HDD that has been partitioned as 1GB MacOS 8.5.1, 3GB MacOS X 10.3.9, 2GB OpenBSD 4.8. I now need to install a bootloader so that my computer can recognize the OpenBSD partition at startup. I have been trying to install... (0 Replies)
Discussion started by: t04st3r
0 Replies
8. AIX
Hello,
I am trying to compile PHP 5.3.5 on AIX 5.2 with Apache 2.2.17 and Mysql 3.23.58
Apache und Mysql are working fine but if i try to compile PHP i get this error:
with make:
sapi/apache2handler/php_functions.lo main/internal_functions.lo -lmysqlclient -lfreetype -lX11 -lXpm -lpng -lz... (2 Replies)
Discussion started by: dtiger
2 Replies
9. Ubuntu
Hi
I'm compiling a real-time kernel in linux, but after I type make bzImage things end with this:
(Things going well doing CC and things)....
CC arch/x86/kernel/kgdb.o
CC arch/x86/kernel/vm86_32.o
CC arch/x86/kernel/early_printk.o
CC arch/x86/kernel/ipipe.o... (2 Replies)
Discussion started by: mdop
2 Replies
10. Slackware
Tryng to compile nfs-utils to latest packages but..
make: Entering directory `/tmp/nfs-utils-1.2.8/utils/gssd'
/bin/sh ../../libtool --tag=CC --mode=link gcc -Wall -Wextra -Wstrict-prototypes -pipe -O2 -fPIC -I/usr/kerberos/include -I/usr/kerberos/include -O2 -fPIC -ltirpc -o gssd... (4 Replies)
Discussion started by: Linusolaradm1
4 Replies
LEARN ABOUT CENTOS
pack_fopen_chunk
pack_fopen_chunk(3alleg4) Allegro manual pack_fopen_chunk(3alleg4)
NAME
pack_fopen_chunk - Opens a sub-chunk of a file. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
PACKFILE *pack_fopen_chunk(PACKFILE *f, int pack);
DESCRIPTION
Opens a sub-chunk of a file. Chunks are primarily intended for use by the datafile code, but they may also be useful for your own file rou-
tines. A chunk provides a logical view of part of a file, which can be compressed as an individual entity and will automatically insert and
check length counts to prevent reading past the end of the chunk. The PACKFILE parameter is a previously opened file, and `pack' is a bool-
ean parameter which will turn compression on for the sub-chunk if it is non-zero. Example:
PACKFILE *output = pack_fopen("out.raw", "w!");
...
/* Create a sub-chunk with compression. */
output = pack_fopen_chunk(output, 1);
if (!output)
abort_on_error("Error saving data!");
/* Write some data to the sub-chunk. */
...
/* Close the sub-chunk, recovering parent file. */
output = pack_fclose_chunk(output);
The data written to the chunk will be prefixed with two length counts (32-bit, a.k.a. big-endian). For uncompressed chunks these will both
be set to the size of the data in the chunk. For compressed chunks (created by setting the `pack' flag), the first length will be the raw
size of the chunk, and the second will be the negative size of the uncompressed data.
To read the chunk, use the following code:
PACKFILE *input = pack_fopen("out.raw", "rp");
...
input = pack_fopen_chunk(input, 1);
/* Read data from the sub-chunk and close it. */
...
input = pack_fclose_chunk(input);
This sequence will read the length counts created when the chunk was written, and automatically decompress the contents of the chunk if it
was compressed. The length will also be used to prevent reading past the end of the chunk (Allegro will return EOF if you attempt this),
and to automatically skip past any unread chunk data when you call pack_fclose_chunk().
Chunks can be nested inside each other by making repeated calls to pack_fopen_chunk(). When writing a file, the compression status is
inherited from the parent file, so you only need to set the pack flag if the parent is not compressed but you want to pack the chunk data.
If the parent file is already open in packed mode, setting the pack flag will result in data being compressed twice: once as it is written
to the chunk, and again as the chunk passes it on to the parent file.
RETURN VALUE
Returns a pointer to the sub-chunked PACKFILE, or NULL if there was some error (eg. you are using a custom PACKFILE vtable).
SEE ALSO
pack_fclose_chunk(3alleg4), pack_fopen(3alleg4)
Allegro version 4.4.2 pack_fopen_chunk(3alleg4)