Sponsored Content
Full Discussion: Undefined reference to Error
Top Forums Programming Undefined reference to Error Post 98684 by svh on Friday 10th of February 2006 01:57:38 AM
Old 02-10-2006
Undefined reference to Error

Hello,

plz help me out with this error,
i am getting this error when i compile my code with gcc.

/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../crt1.o(.text+0x18): In function `_start':
: undefined reference to `main'
/tmp/cciLxqdV.o(.text+0x3c): In function `HandleUserTransaction()':
: undefined reference to `ShowScreen(Screens)'
/tmp/cciLxqdV.o(.text+0x49): In function `HandleUserTransaction()':
: undefined reference to `WaitUntilCardIsRemoved(BEEP_TYPE)'
/tmp/cciLxqdV.o(.text+0x5b): In function `HandleUserTransaction()':
: undefined reference to `ShowScreen(Screens)'
/tmp/cciLxqdV.o(.text+0x68): In function `HandleUserTransaction()':
: undefined reference to `WaitUntilCardIsRemoved(BEEP_TYPE)'
/tmp/cciLxqdV.o(.text+0x7a): In function `HandleUserTransaction()':
: undefined reference to `ShowScreen(Screens)'
/tmp/cciLxqdV.o(.text+0x87): In function `HandleUserTransaction()':
: undefined reference to `WaitUntilCardIsRemoved(BEEP_TYPE)'
/tmp/cciLxqdV.o(.text+0x99): In function `HandleUserTransaction()':
: undefined reference to `ShowScreen(Screens)'
/tmp/cciLxqdV.o(.text+0xa6): In function `HandleUserTransaction()':
: undefined reference to `WaitUntilCardIsRemoved(BEEP_TYPE)'
/tmp/cciLxqdV.o(.text+0xb5): In function `HandleUserTransaction()':
: undefined reference to `ShowScreen(Screens)'
/tmp/cciLxqdV.o(.text+0xc2): In function `HandleUserTransaction()':
: undefined reference to `WaitUntilCardIsRemoved(BEEP_TYPE)'
/tmp/cciLxqdV.o(.text+0xf5): In function `HandleUserTransaction()':

thanx in advance
svh
 

9 More Discussions You Might Find Interesting

1. Programming

about undefined reference for 'sinf'

I m writting code in c using another library(parapin) and making Makefile .but there is a error like undefined reference to `sinf' undefined reference to `ceilf' although i have added math.h library in my code . I tried to run simple programme using math.h and it run.but in making Makefile it... (2 Replies)
Discussion started by: bharat suthar
2 Replies

2. Programming

undefined reference to `pthread_create'

Hi I wanted to learn communication between threads and I used a simple example but I faced with this error while I have a sofware that uses this functions without any problem so would you please help me to know the reason thanks for your help and great favor. #include <pthread.h>... (2 Replies)
Discussion started by: netman
2 Replies

3. Programming

undefined reference to `__ctype_b'

when i compile my program, i meet the following error: ... undefined reference to `__ctype_b' ... anybody knows which shared library should be linked during make? thanks a lot! (6 Replies)
Discussion started by: princelinux
6 Replies

4. Programming

undefined reference to 'function'

Hi, i want to compile a code where fortran calls c . First I compiled C module ,it has pass by gcc. However, after generating .o file. I compiled C and fortran files together by intel fortran and it failed " undefined reference to 'vicerror'". vicerror is a function. I do not know why. (1 Reply)
Discussion started by: austinhsu
1 Replies

5. Programming

undefined reference to pthread_create

I try to compile a sample c code in fedora eclipse 3.2 as managed makefile using pthread library,it shows some error on pthread functions.Error is of undefined reference to pthread.Anybody guide me to solve this problem. Thanking you (1 Reply)
Discussion started by: sujith4u87
1 Replies

6. Programming

undefined reference to `pthread_create'

Hi guys. H was learning posix threads in C with anjuta IDE. it gives me undefined reference to `pthread_create' I know i should compile it like: gcc -lpthread main.c how should i import this configuration in anjuta so i can compile inside it? (2 Replies)
Discussion started by: majid.merkava
2 Replies

7. Homework & Coursework Questions

undefined reference help

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: i know when undefined reference shows up the program is saying it is not link to that function but the problem... (1 Reply)
Discussion started by: mgyeah
1 Replies

8. Homework & Coursework Questions

undefined reference help

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: The problem is a function which i typed although it kept saying that it is a undefined reference still. other... (1 Reply)
Discussion started by: mgyeah
1 Replies

9. Programming

Error: undefined reference to winmain@16?

I was trying to compile the following code in cygwin using g++: ------------------------------------------ #include <iostream> using namespace std; int identity(int input) { int output = input; return output; } ------------------------------------------ I get this error: ... (7 Replies)
Discussion started by: DyslexicChciken
7 Replies
PUPPET-DOC(8)							   Puppet manual						     PUPPET-DOC(8)

NAME
puppet-doc - Generate Puppet documentation and references SYNOPSIS
Generates a reference for all Puppet types. Largely meant for internal Puppet Labs use. USAGE
puppet doc [-a|--all] [-h|--help] [-o|--outputdir rdoc-outputdir] [-m|--mode text|pdf|rdoc] [-r|--reference reference-name] [--charset charset] [manifest-file] DESCRIPTION
If mode is not 'rdoc', then this command generates a Markdown document describing all installed Puppet types or all allowable arguments to puppet executables. It is largely meant for internal use and is used to generate the reference document available on the Puppet Labs web site. In 'rdoc' mode, this command generates an html RDoc hierarchy describing the manifests that are in 'manifestdir' and 'modulepath' configu- ration directives. The generated documentation directory is doc by default but can be changed with the 'outputdir' option. If the command is run with the name of a manifest file as an argument, puppet doc will output a single manifest's documentation on stdout. OPTIONS
--all Output the docs for all of the reference types. In 'rdoc' mode, this also outputs documentation for all resources. --help Print this help message --outputdir Used only in 'rdoc' mode. The directory to which the rdoc output should be written. --mode Determine the output mode. Valid modes are 'text', 'pdf' and 'rdoc'. The 'pdf' mode creates PDF formatted files in the /tmp direc- tory. The default mode is 'text'. In 'rdoc' mode you must provide 'manifests-path' --reference Build a particular reference. Get a list of references by running 'puppet doc --list'. --charset Used only in 'rdoc' mode. It sets the charset used in the html files produced. --manifestdir Used only in 'rdoc' mode. The directory to scan for stand-alone manifests. If not supplied, puppet doc will use the manifestdir from puppet.conf. --modulepath Used only in 'rdoc' mode. The directory or directories to scan for modules. If not supplied, puppet doc will use the modulepath from puppet.conf. --environment Used only in 'rdoc' mode. The configuration environment from which to read the modulepath and manifestdir settings, when reading said settings from puppet.conf. Due to a known bug, this option is not currently effective. EXAMPLE
$ puppet doc -r type > /tmp/type_reference.markdown or $ puppet doc --outputdir /tmp/rdoc --mode rdoc /path/to/manifests or $ puppet doc /etc/puppet/manifests/site.pp or $ puppet doc -m pdf -r configuration AUTHOR
Luke Kanies COPYRIGHT
Copyright (c) 2011 Puppet Labs, LLC Licensed under the Apache 2.0 License Puppet Labs, LLC June 2012 PUPPET-DOC(8)
All times are GMT -4. The time now is 07:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy