The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Undefined symbol: .log ravindra_maddal AIX 0 05-15-2008 08:30 AM
undefined symbol: clock_gettime' error dpa078 High Level Programming 4 04-09-2008 10:29 AM
Getting error "Undefined symbol: .u_strlen_2_6" nachiketv AIX 0 06-05-2006 10:16 AM
shared object "undefined symbol: fstat" error marcus121 High Level Programming 5 04-24-2006 08:11 PM
Undefined symbol: .getcury in getyx gefa High Level Programming 7 03-24-2006 08:29 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-25-2003
stockdan stockdan is offline
Registered User
  
 

Join Date: Nov 2003
Posts: 2
Question ld: 0711-317 ERROR: Undefined symbol: .hello

Hello,

when i compile with xlc on aix i got the error message "ld: 0711-317 ERROR: Undefined symbol: .hello"

dummy.pc:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "dummy.h"

int main ( )
{
printf("\nbefore Hello");
hello();
printf("\npast Hello");
return (0);

}

hello.c:
void hello()
{
printf("Hello World!");
}

dummy.h:
void hello(void);


can anyone help me, please?

Daniel


sorry for any grammatical mistakes but i 'm not really good in english.
  #2 (permalink)  
Old 11-25-2003
rogier77 rogier77 is offline
Registered User
  
 

Join Date: Sep 2003
Posts: 20
Copy the code from the hello.c file at the bottom of dummy.pc , and the code from dummy.h at the location of
"#include 'dummy.h'".

It should work after that. Please remember that the (.h) extension is normally used for libraries. If a file is just c-source, then call it (.c).

Good luck,
Rogier
  #3 (permalink)  
Old 11-25-2003
stockdan stockdan is offline
Registered User
  
 

Join Date: Nov 2003
Posts: 2
Thanks Rogier, but i think that was not the problem. In my opinion i had problems with the used makefile. I have no errors now.
Thanks

Daniel
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:55 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0