![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Undefined symbol: .log | ravindra_maddal | AIX | 0 | 05-15-2008 04:30 AM |
| undefined symbol: clock_gettime' error | dpa078 | High Level Programming | 4 | 04-09-2008 06:29 AM |
| Getting error "Undefined symbol: .u_strlen_2_6" | nachiketv | AIX | 0 | 06-05-2006 06:16 AM |
| shared object "undefined symbol: fstat" error | marcus121 | High Level Programming | 5 | 04-24-2006 04:11 PM |
| Undefined symbol: .getcury in getyx | gefa | High Level Programming | 7 | 03-24-2006 04:29 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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. |
| Forum Sponsor | ||
|
|
|
|||
|
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 |