Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error related "C"

Status
Not open for further replies.

godhelp

IS-IT--Management
Jan 30, 2003
48
Hi Gurs,

Any idea what it does mean?, i am sure all liberies are in place.

spar1% gcc -o sunmo sunmo.c
Undefined first referenced
symbol in file
countparval /var/tmp/ccCpLnqL.o
countparname /var/tmp/ccCpLnqL.o
fgettr /var/tmp/ccCpLnqL.o
intlin /var/tmp/ccCpLnqL.o
ints8r /var/tmp/ccCpLnqL.o
getparfloat /var/tmp/ccCpLnqL.o
yxtoxy /var/tmp/ccCpLnqL.o
ealloc2float /var/tmp/ccCpLnqL.o
ealloc1float /var/tmp/ccCpLnqL.o
xindex /var/tmp/ccCpLnqL.o
requestdoc /var/tmp/ccCpLnqL.o
sqrt /var/tmp/ccCpLnqL.o
countnparval /var/tmp/ccCpLnqL.o
err /var/tmp/ccCpLnqL.o
warn /var/tmp/ccCpLnqL.o
CWP_Exit /var/tmp/ccCpLnqL.o
fputtr /var/tmp/ccCpLnqL.o
getnparfloat /var/tmp/ccCpLnqL.o
initargs /var/tmp/ccCpLnqL.o
free1float /var/tmp/ccCpLnqL.o
getparint /var/tmp/ccCpLnqL.o
ld: fatal: Symbol referencing errors. No output written to sunmo
collect2: ld returned 1 exit status
 
gcc -lm -osunmo sunmo.c

I didn the ablve; still I am getting same problem. I have crosschecked mrelated lib files and confirmed ok.

any clue...
 
Are you trying to compile a Seismic UNIX program? That is the only place I find any information on some of the funtions you have listed. If so, there are special libraries used for this software. Is there a "Makefile" that goes along with your software package? If so, instead of running gcc on the program sunmo.c, run the command "make". You may have to modify the make file to use the gcc compiler instead of cc. If there isn't any makefile, you may have to set an environment variable called "LD_LIBRARY_PATH" with the library paths for this specific libraries in the software package.
 
> gcc -lm -osunmo sunmo.c
Compiler command lines are order sensitive.
It's normal to list libraries AFTER source and object files.
[tt]gcc -osunmo sunmo.c -lm[/tt]

--
 
No luck..

we are in the process of creating another source..
 
Look in your software package directory for an include directory or a directory that contains header files (.h). Add the path to the include or header file directory in your path environment setting.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top