07-11-2001
Compiling Errors -- Symbol referencing
I'm trying to compile a FTP_API program. To do this you must use the libftp.so libary. But that libary has references which are not defined. Has anyone had this problems and how is it corrected??
The command line looks like this:--------------------------------------------
# cc ftpstock.c -lftp
Undefined.........................first referenced
symbol..............................in file
_xlisten............................./udk/usr/lib/libftp.so
_xbind.............................../udk/usr/lib/libftp.so
_xsetsockopt ..................../udk/usr/lib/libftp.so
_xconnect........................../udk/usr/lib/libftp.so
gethostbyname................./udk/usr/lib/libftp.so
_xaccept............................/udk/usr/lib/libftp.so
getservbyname................../udk/usr/lib/libftp.so
inet_ntoa.........................../udk/usr/lib/libftp.so
_xsocket............................./udk/usr/lib/libftp.so
inet_addr............................/udk/usr/lib/libftp.so
_xgetsockname................../udk/usr/lib/libftp.so
UX:ld: ERROR: a.out: fatal error: Symbol referencing errors. No output written to a.out
-------------------------------------------------------------------------------
Want do you guys think? I have stdio.h and net/libftp.h included in the file.
Thanks,
Mike
Last edited by spotanddot; 07-11-2001 at 10:39 AM..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello!
I have some problems installing a program called “Jail Chroot Project”.
http://www.gsyc.inf.uc3m.es/~assman/jail/index.html
I have only installed precompiled programs before and I get some kind of error message when im trying to compile this program.
I have downloaded and... (2 Replies)
Discussion started by: alfabetman
2 Replies
2. Programming
Undefined first referenced
symbol in file
std::basic_ostream<char, std::char_traits<char> >::operator<<(int)/var/tmp//ccTR
std::cerr /var/tmp//ccTRcjui.o
std::cout /var/tmp//ccTRcjui.o... (1 Reply)
Discussion started by: suhasini
1 Replies
3. Programming
Hi all,
I am getting the following error when I try to do a build of a product.
I dont have the dependencies of the binaries involved in the build and thats the reason I was not able to find which library to add or to proceed to the next step to solve the reference problem.
Undefined ... (1 Reply)
Discussion started by: jerryragland
1 Replies
4. UNIX for Advanced & Expert Users
Undefined first referenced
symbol in file
std::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator(unsigned int) const/var/tmp//cc9ACJBX.o
std::basic_istream<char, std::char_traits<char> >& std::operator>><char,... (3 Replies)
Discussion started by: bjena
3 Replies
5. Programming
Hey everyone, I can't figure out this symbol referencing error after looking at it for the longest time, and I figured some fresh eyes might be able to point something out I am overlooking.
Undefined first referenced
symbol in... (1 Reply)
Discussion started by: fromatz
1 Replies
6. Shell Programming and Scripting
I am getting below error, any ideas to resolve it.
1:ts_n_tcp_cmp_row /finder3/baseline/95s/ed/src/lib/libfinder_ui_basic.so
1:ui_convert_date /finder3/baseline/95s/ed/src/lib/libfinder_fi_basic.so
1:ld: fatal: Symbol referencing errors. No output written... (1 Reply)
Discussion started by: shafi2all
1 Replies
7. Programming
Hi,
I'm trying to compile OpenTTD on Solaris 5.10. I do not have root permissions so I have to set the prefix-dir to /home/abcde/usr/local/opt/opentdd-0.6.3
I've used the following command to configure:
bash ./configure --prefix-dir=/opt/openttd-0.6.2 --without-makedepend \... (1 Reply)
Discussion started by: rudolph
1 Replies
8. Programming
Hello. I used to compile my code including a third-party library, "libfoo.so". Now, the vendor ships a statically linked library, "libfoo.a", instead. With this library, I run into the following error:
CC -mt -xarch=v9 -DCOMPILE_SOL_SPARC -ftrap=%none -xlibmil -xchip=ultra2 -xbuiltin -xO4 \... (0 Replies)
Discussion started by: acheong87
0 Replies
9. Programming
Dear all,
I had the "Symbol referencing errors" while compiling a C socket code.
It said "Undefined Symbol: socketpair", but I already copy the two head files (#include "types.h", #include "socket.h") into my current directory.
Could anyone help me with it? Thanks.
By the way, I'm using... (4 Replies)
Discussion started by: beyondaymk
4 Replies
10. Programming
Undefined first referenced
symbol in file
logf /var/tmp//ccwztFsO.o
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status
float exponC(float mean)
{
index1++;... (1 Reply)
Discussion started by: willji1234
1 Replies
h5cc(1) General Commands Manual h5cc(1)
NAME
h5cc - Helper script to compile HDF5 applications.
SYNOPSIS
h5cc [OPTIONS] <compile line>
DESCRIPTION
h5cc can be used in much the same way MPIch is used to compile an HDF5 program. It takes care of specifying where the HDF5 header files and
libraries are on the command line.
h5cc supercedes all other compiler scripts in that if you've used them to compile the HDF5 library, then h5cc also uses those scripts. For
example, when compiling an MPIch program, you use the mpicc script. If you've built HDF5 using MPIch, then h5cc uses the MPIch program for
compilation.
Some programs use HDF5 in only a few modules. It isn't necessary to use h5cc to compile those modules which don't use HDF5. In fact, since
h5cc is only a convenience script, you are still able to compile HDF5 modules in the normal way. In that case, you will have to specify the
HDF5 libraries and include paths yourself.
An example of how to use h5cc to compile the program hdf_prog, which consists of modules prog1.c and prog2.c and uses the HDF5 shared
library, would be as follows:
# h5cc -c prog1.c # h5cc -c prog2.c # h5cc -shlib -o hdf_prog prog1.o prog2.o
OPTIONS
-help Prints a help message.
-echo Show all the shell commands executed.
-prefix=DIR
Use the directory DIR to find the HDF5 lib/ and include/ subdirectories. Default: prefix specified when configuring HDF5.
-show Show the commands without executing them.
-shlib Compile using shared HDF5 libraries.
-noshlib
Compile using static HDF5 libraries [default].
<compile line>
The normal compile line options for your compiler. h5cc uses the same compiler you used to compile HDF5. Check your compiler's man-
ual for more information on which options are needed.
ENVIRONMENT
HDF5_CC
Use a different C compiler.
HDF5_CLINKER
Use a different linker.
HDF5_USE_SHLIB=[yes|no]
Use shared version of the HDF5 library [default: no].
SEE ALSO
h5fc(1), h5c++(1)
h5cc(1)