The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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
Error: Undefined Symbol ..... First referenced in file...... smartgupta High Level Programming 1 10-10-2008 06:08 AM
undefined symbol: clock_gettime' error dpa078 High Level Programming 4 04-09-2008 09:29 AM
Getting error "Undefined symbol: .u_strlen_2_6" nachiketv AIX 0 06-05-2006 09:16 AM
shared object "undefined symbol: fstat" error marcus121 High Level Programming 5 04-24-2006 07:11 PM
ld: 0711-317 ERROR: Undefined symbol: .hello stockdan High Level Programming 2 11-25-2003 05:43 AM

Reply
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 07-29-2009
wvuguy wvuguy is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 9
ld: 0711-317 ERROR: Undefined symbol: stdscr

I am trying to compile pro*c program on aix 5.3. The program compiled fine when I was using curses library. After switching to ncurses, I have started getting compilation errors. After installing ncurses on the box, I changed the -lcurses flag to -lncurses. I have also updated the path to the ncurses library in the make file. Any one has any ideas on how to solve this? Thanks.

ld: 0711-317 ERROR: Undefined symbol: stdscr
ld: 0711-317 ERROR: Undefined symbol: .wmove
ld: 0711-317 ERROR: Undefined symbol: .wprintw
ld: 0711-317 ERROR: Undefined symbol: .wrefresh
ld: 0711-317 ERROR: Undefined symbol: .noraw
ld: 0711-317 ERROR: Undefined symbol: .endwin
ld: 0711-317 ERROR: Undefined symbol: .initscr
ld: 0711-317 ERROR: Undefined symbol: .cbreak
ld: 0711-317 ERROR: Undefined symbol: .nonl
ld: 0711-317 ERROR: Undefined symbol: .noecho
ld: 0711-317 ERROR: Undefined symbol: .keypad
ld: 0711-317 ERROR: Undefined symbol: .wclear
ld: 0711-317 ERROR: Undefined symbol: .wattr_on
ld: 0711-317 ERROR: Undefined symbol: .wattr_off
ld: 0711-317 ERROR: Undefined symbol: .wgetch
ld: 0711-317 ERROR: Undefined symbol: .printw
ld: 0711-317 ERROR: Undefined symbol: .wclrtoeol
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
make: The error code from the last command is 8.
  #2 (permalink)  
Old 07-29-2009
shamrock shamrock is offline Forum Advisor  
Registered User
  
 

Join Date: Oct 2007
Location: USA
Posts: 750
Are you calling initscr before anything else in your main function...initscr should be the first statement there and endwin should be the last call prior to returning.
  #3 (permalink)  
Old 07-29-2009
wvuguy wvuguy is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 9
Quote:
Originally Posted by shamrock View Post
Are you calling initscr before anything else in your main function...initscr should be the first statement there and endwin should be the last call prior to returning.
Yes initscr is the first and endwin is the last function call in main. Thanks.
  #4 (permalink)  
Old 07-29-2009
shamrock shamrock is offline Forum Advisor  
Registered User
  
 

Join Date: Oct 2007
Location: USA
Posts: 750
Can you post the code to show what's going on...also what compiler are you using.
  #5 (permalink)  
Old 07-29-2009
wvuguy wvuguy is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 9
Quote:
Originally Posted by shamrock View Post
Can you post the code to show what's going on...also what compiler are you using.
We are using compiler xlc_r version 7 on AIX with Oracle 11g precomplier for pro*c. Code is over 2500 lines and the error does not pin point where the it is comming from.
  #6 (permalink)  
Old 07-29-2009
shamrock shamrock is offline Forum Advisor  
Registered User
  
 

Join Date: Oct 2007
Location: USA
Posts: 750
All these symbols are part of ncurses so it looks like the compiler isnt picking up the libncurses library. Do you know where it is installed and make sure that the -L path to it is correct. You can try removing and reinstalling ncurses in case something got missed during the first install...though from the error it looks like the compiler is not able to find the ncurses library. Can you show atleast the command you are giving for compilation.
Reply

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 02:25 PM.


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