11-01-2007
Quote:
Originally Posted by
rimon
How do I get this to compile?
Looks like you need to predefine some macros so that to the compiler it appears in release mode.
If you are porting Windows code to HPUX 11.23 using gcc, have you first ported it to Linux using gcc? It reduces the number of unknowns.
Alternatively use HPUX's aCC.
10 More Discussions You Might Find Interesting
1. AIX
Hello all,
I am having a problem with the following program on AIX:-
// Namespace.cxx
#include <iostream>
using namespace std;
#include <iostream.h>
int main()
{
// cout<<"Hello world";
return 0;
}
On compilation:-
$ xlC Namespace.cxx... (0 Replies)
Discussion started by: gupta_ca
0 Replies
2. Programming
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)
Discussion started by: sweta
1 Replies
3. Programming
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)
Discussion started by: smanu
2 Replies
4. Programming
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)
Discussion started by: mansoorulhaq
3 Replies
5. Shell Programming and Scripting
Hi...
I would like to create a program that can be easily ported between several Linuxes... Therefore I would like to avoid compilation and have the ability to run it as shell scripts runs...
My program need to call some system calls such as fork etc...
do you know a way to use them without... (1 Reply)
Discussion started by: yamsin789
1 Replies
6. Linux
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)
Discussion started by: mannam srinivas
12 Replies
7. HP-UX
hello everyone,
here i am attempting to compile a c++ submodule.OS is HP-UX.
here i am getting the following error.
======================================
"Make: Don't know how to make compile. Stop."
===================================
could you pls somebody suggest why this error is... (2 Replies)
Discussion started by: mannam srinivas
2 Replies
8. Programming
state_field state_abvr = {
"AL","ALABAMA",
"AK","ALASKA",
"AZ","ARIZONA",
"AR","ARKANSAS",
"CA","CALIFORNIA",
"CO","COLORADO",
"CT","CONNECTICUT",
"DE","DELAWARE",
"DC","DISTRICT-OF-COLUMBIA",
"FL","FLORIDA",
"GA","GEORGIA",
"HI","HAWAII",
"ID","IDAHO",
"IL","ILLINOIS",... (1 Reply)
Discussion started by: jagan_kalluri
1 Replies
9. Programming
I am facing problem while migrating the c++ code from Linux to Solaris. In linux the code is absolutly compiled fine with GCC compiler but when i am using the same in Solaris it coomplains
bash-3.1$ gcc LibSip.h
gcc: Compilation of header file requested
The same command is working fine in... (2 Replies)
Discussion started by: mrupesh74
2 Replies
10. Programming
I am trying to compile thunar 1.8.4.
It is giving me this error.
configure: error: X Window system libraries and header files are required Ubuntu Mate 18.04 (2 Replies)
Discussion started by: drew77
2 Replies
LEARN ABOUT DEBIAN
moosex::attribute::chainedclone
MooseX::Attribute::ChainedClone(3pm) User Contributed Perl Documentation MooseX::Attribute::ChainedClone(3pm)
NAME
MooseX::Attribute::ChainedClone - Attribute that returns a cloned instance
VERSION
version 1.0.1
SYNOPSIS
package Test;
use Moose;
has debug => (
traits => [ 'ChainedClone' ],
is => 'rw',
isa => 'Bool',
default => 0,
);
sub complex_method
{
my $self = shift;
#...
print "helper message" if $self->debug;
#...
}
sub clone {
my $self = shift;
# custom clone code here
# defaults to:
return bless { %$self }, ref $self;
}
1;
Which allows for:
my $test = Test->new;
$test->debug(1)->complex_method; # debug enabled
# complex_method is called on a cloned instance
# with debug set to 1
$test->complex_method; # debug is still disabled on $test
$test->debug(1); # returns a cloned $test instance with debug set to 1
$test->debug; # returns 0
DESCRIPTION
MooseX::Attribute::ChainedClone is a Moose Trait which allows for method chaining on accessors by returning a cloned instance of $self on
write/set operations.
If $self has a "clone" method, this method is invoked to clone the instance. This allows for easy integration with MooseX::Clone or any
custom made clone method. If no "clone" method is available, the new instance is build using "bless { %$self }, ref $self".
AUTHORS
o Moritz Onken <onken@netcubed.de>
o David McLaughlin <david@dmclaughlin.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Moritz Onken.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-01-28 MooseX::Attribute::ChainedClone(3pm)