10-23-2001
Error Compiling C program
Hi All,
I tried to compile a C program but i am getting error while Linking . it says Undefined reference to ' ' (here it gives a method name which is defined Globally ).
Can any body tell the resaon and remedy for the same . Iam stuck up here .
Thanks
10 More Discussions You Might Find Interesting
1. Programming
Hello. I am trying to run a c program on a unix shell (ssh). I have searched this forum but have not come accross the soultion to my problem, so I am posting my question here :cool:
I wrote the following simple code:
#include <iostream.h>
using namespace std;
int main()
{
... (7 Replies)
Discussion started by: Minnesota Red
7 Replies
2. Programming
hi
i am having a problem that when ever i use
cc program_name.c
to compile a program. an error occurs, showing cc not found.
please help. (28 Replies)
Discussion started by: rochitsharma
28 Replies
3. Programming
Help
I know nothing about c programming. :confused:
I want to compile the below c program. It extracts data from an oracle database into csv files.
I have oracle 9206 installed with ProC. I dont have gcc
My question is. How the hell do I make this into an file I can run? I am pulling... (3 Replies)
Discussion started by: ooploo
3 Replies
4. Programming
here is the very simple bob.c:
main()
{
printf("hello");
}
i use tiger and i use the command:
gcc bob.c
and the end result:
bob.c: In function ‘main':
bob.c:3: warning: incompatible implicit declaration of built-in function /‘printf'
any help appreciated, i'm just starting... (4 Replies)
Discussion started by: cleansing_flame
4 Replies
5. Programming
if somebody can help me pls.
i need the source code for a shell which compiles C or java programs in unix
i need a very short and simple one, just the compiling part
Respect (2 Replies)
Discussion started by: zlatan005
2 Replies
6. Programming
Hello,
I am trying to compile a Pro*C program under unix:
proc iname=test.pc
works fine
but then I am not able to compile the test.c file :
gcc test.c -o test.o -L $ORACLE_HOME/lib -l clntsh
/usr/bin/ld:
Object file format error in: /u01/app/oracle/product/10.1.0.2.0/lib:... (1 Reply)
Discussion started by: nsmrmd
1 Replies
7. Programming
Hello,
I am writing to ask for support about compiling an very old but famous C-progam for genetics study called MapMaker/QTL, and the source code is available from MIT:
http://www.broadinstitute.org/ftp/distribution/software/mapmaker3/The program was originally designed for systems like SunOS... (1 Reply)
Discussion started by: yifangt
1 Replies
8. UNIX for Advanced & Expert Users
good morning,
I have 64-bit DB2 V9.7 AIX 7.1.0.0
I am compiling a C program, when running cc-I / rutadb2/include-c programa.c this error.
ksh: cc: not found.
how I can check if I have installed the C compiler?
Any help will be greatly appreciated.
Thank you very much and best regards. (2 Replies)
Discussion started by: systemoper
2 Replies
9. UNIX for Dummies Questions & Answers
I am hoping someone can give me a good free web resource for writing code to compile a binary executable. I am getting fairly decent at writing shell script, are the .f files just shell scripts? Also, I don't know where to begin on the makefiles. The reason I am curious is because I have been... (6 Replies)
Discussion started by: butson
6 Replies
10. Programming
Hello,
Met a problem when compiling a C++ program from source code without error, but when ran it there was always an error message:
./Ray: error while loading shared libraries: libmpi_cxx.so.1: cannot open shared object file: No such file or directoryAs the error points to openmpi which was... (0 Replies)
Discussion started by: yifangt
0 Replies
LEARN ABOUT DEBIAN
class::mop::method
Class::MOP::Method(3pm) User Contributed Perl Documentation Class::MOP::Method(3pm)
NAME
Class::MOP::Method - Method Meta Object
VERSION
version 2.0603
DESCRIPTION
The Method Protocol is very small, since methods in Perl 5 are just subroutines in a specific package. We provide a very basic
introspection interface.
METHODS
Class::MOP::Method->wrap($code, %options)
This is the constructor. It accepts a method body in the form of either a code reference or a Class::MOP::Method instance, followed by
a hash of options.
The options are:
o name
The method name (without a package name). This is required if $code is a coderef.
o package_name
The package name for the method. This is required if $code is a coderef.
o associated_metaclass
An optional Class::MOP::Class object. This is the metaclass for the method's class.
$metamethod->clone(%params)
This makes a shallow clone of the method object. In particular, subroutine reference itself is shared between all clones of a given
method.
When a method is cloned, the original method object will be available by calling "original_method" on the clone.
$metamethod->body
This returns a reference to the method's subroutine.
$metamethod->name
This returns the method's name
$metamethod->package_name
This returns the method's package name.
$metamethod->fully_qualified_name
This returns the method's fully qualified name (package name and method name).
$metamethod->associated_metaclass
This returns the Class::MOP::Class object for the method, if one exists.
$metamethod->original_method
If this method object was created as a clone of some other method object, this returns the object that was cloned.
$metamethod->original_name
This returns the method's original name, wherever it was first defined.
If this method is a clone of a clone (of a clone, etc.), this method returns the name from the first method in the chain of clones.
$metamethod->original_package_name
This returns the method's original package name, wherever it was first defined.
If this method is a clone of a clone (of a clone, etc.), this method returns the package name from the first method in the chain of
clones.
$metamethod->original_fully_qualified_name
This returns the method's original fully qualified name, wherever it was first defined.
If this method is a clone of a clone (of a clone, etc.), this method returns the fully qualified name from the first method in the
chain of clones.
$metamethod->is_stub
Returns true if the method is just a stub:
sub foo;
$metamethod->attach_to_class($metaclass)
Given a Class::MOP::Class object, this method sets the associated metaclass for the method. This will overwrite any existing associated
metaclass.
$metamethod->detach_from_class
Removes any associated metaclass object for the method.
$metamethod->execute(...)
This executes the method. Any arguments provided will be passed on to the method itself.
Class::MOP::Method->meta
This will return a Class::MOP::Class instance for this class.
It should also be noted that Class::MOP will actually bootstrap this module by installing a number of attribute meta-objects into its
metaclass.
AUTHOR
Moose is maintained by the Moose Cabal, along with the help of many contributors. See "CABAL" in Moose and "CONTRIBUTORS" in Moose for
details.
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Infinity Interactive, Inc..
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-06-28 Class::MOP::Method(3pm)