Hi All,
I facing the following compilation error; when I implementing the following logic.
ostrstream ostr;
ostr << (( scAxsm.getRecord( i ).getField( 2 ).getShort())%12)!=0?(( scAxsm.getRecord( i ).getField( 2 ).getShort())/12+1)
: (( scAxsm.getRecord( i ).getField( 2 ).getShort())/12) <<... (1 Reply)
Hi,
While trying compile a C++ file in UNIX with gcc whose make rule involves the usage of
/usr/ccs/bin/as, I get the following error:
/usr/ccs/bin/as: No such file or directory
/usr/ccs/bin/as: error: write error on output file "<filename>.o"
*** Error code 1
clearmake: Error: Build... (2 Replies)
I am compiling a software xchm on solaris 10.
First i run './configure'
There is no error.
But when i start compiling using 'gmake'
following error shown
/usr/local/include/wx-2.6/wx/x11/brush.h: In copy constructor `wxBrush::wxBrush(const wxBrush&)':... (3 Replies)
Hi All,
while building, i am receiving the following error......
Undefined first referenced
symbol in file
void os_directory::create(const std::string &) obj.release/BOConfig.o (symbol belongs to implicit dependency... (2 Replies)
Hello every one,
here i am attempting to compile a c++ module using gcc.it is throwing a error .
error:
====
> make -S dummyCHARGP
/usr/local/bin/gcc -g -DDEBUG -DMAT -I. -I/swtemp/usbs/cc/unix-ce/root/subsys/lib/Linux/ -I/opt/dce/include -I/opt/dce/include/dce ... (12 Replies)
Hi,
Recently our codes have been migrated to new server, whenever we compile any pro*c programs we receive the following
errorl. please help
>> make -f lib_util.mk all
CC= ucbcc 4Compiling lib_util
### command line files and options (expanded):
### -xO3 -DNULL=0 -v -o lib_util.o... (0 Replies)
Hi,
Recently our codes have been migrated to new server, whenever we compile any pro*c programs we receive the following
errorl. please help
>> make -f lib_util.mk all
CC= ucbcc 4Compiling lib_util
### command line files and options (expanded):
### -xO3 -DNULL=0 -v -o lib_util.o... (1 Reply)
I am getting the below given errors for the following program though all the variables have been declared and used appropriately. Please Help. The environment is AIX.
Error:
------
"gbsizeprofile.c", line 67.4: 1506-275 (S) Unexpected text 'void' encountered.
"gbsizeprofile.c", line 67.10:... (2 Replies)
Discussion started by: yschd
2 Replies
LEARN ABOUT ULTRIX
swapsex
swapsex(3) Library Functions Manual swapsex(3)Name
swap_word, swap_half, swap_filehdr, swap_aouthdr, swap_scnhdr, swap_hdr, swap_fd, swap_fi, swap_sym, swap_ext, swap_pd, swap_dn, swap_opt,
swap_aux, swap_reloc, swap_ranlib - swap the sex of the specified structure
Syntax
#include <sex.h>
#include <filehdr.h>
#include <aouthdr.h>
#include <scnhdr.h>
#include <sym.h>
#include <symconst.h>
#include <cmplrs/stsupport.h>
#include <reloc.h>
#include <ar.h>
long swap_word( word )
long word;
short swap_half( half )
short half;
void swap_filehdr( pfilehdr, destsex )
FILHDR *pfilehdr;
long destsex;
void swap_aouthdr( paouthdr, destsex )
AOUTHDR *paouthdr;
long destsex;
void swap_scnhdr( pscnhdr, destsex )
SCNHDR *pscnhdr;
long destsex;
void swap_hdr( phdr, destsex )
pHDRR phdr;
long destsex;
void swap_fd( pfd, count, destsex )
pFDR pfd;
long count;
long destsex;
void swap_fi( pfi, count, destsex )
pFIT pfi;
long count;
long destsex;
void swap_sym( psym, count, destsex )
pSYMR psym;
long count;
long destsex;
void swap_ext( pext, count, destsex )
pEXTR pext;
long count;
long destsex;
void swap_pd( ppd, count, destsex )
pPDR ppd;
long count;
long destsex;
void swap_dn( pdn, count, destsex )
pRNDXR pdn;
long count;
long destsex;
void swap_opt( popt, count, destsex )
pOPTR popt;
long count;
long destsex;
void swap_aux( paux, type, destsex )
pAUXU paux;
long type;
long destsex;
void swap_reloc( preloc, count, destsex )
struct reloc *preloc;
long count;
long destsex;
void swap_ranlib( pranlib, count, destsex )
struct ranlib *pranlib;
long count;
long destsex;
Description
All routines that swap headers take a pointer to a header structure to change the byte's sex. The destsex argument lets the swapsex rou-
tines decide whether to swap bitfields before or after swapping the words in which they occur. If destsex equals the hostsex of the machine
you are running on, the flip happens before the swap; otherwise, the flip happens after the swap. Although not all routines swap struc-
tures containing bitfields, the destsex is required.
The routine takes a pointer to an aux entry and a type, which is a ST_AUX_* constant in cmplrs/stsupport.h. The constant specifies the
type of the aux entry to change the sex of. All other routines are passed a pointer to an array of structures and a count of structures to
have the byte sex changed. The routines and are macros declared in sex.h. Only the include files that describe the structures being
swapped have to be included.
See Alsogethostsex(3)
RISC swapsex(3)